Class WidgetControl.Instance
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.WidgetControl.dll
- API Level:
- 3
Class for the widget instance.
public class Instance
- Inheritance
-
WidgetControl.Instance
Properties
View SourceId
The widget ID.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
Methods
View SourceChangeContent(Bundle, Boolean)
Changes the content for the widget instance.
Declaration
public void ChangeContent(Bundle content, bool force)
Parameters
Type | Name | Description |
---|---|---|
Bundle | content | Content to be changed. |
Boolean | force | True if you want to update your widget even if the provider is paused, otherwise false. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown in case of failed conditions. |
UnauthorizedAccessException | Thrown when an application does not have the required privileges to access this method. |
NotSupportedException | Thrown when the required features are not supported. |
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
View SourceChangePeriod(Double)
Changes the update period for the widget instance.
Declaration
public void ChangePeriod(double period)
Parameters
Type | Name | Description |
---|---|---|
Double | period | The period to be changed. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown in case of failed conditions. |
UnauthorizedAccessException | Thrown when an application does not have the required privileges to access this method. |
NotSupportedException | Thrown when the required features are not supported. |
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
View SourceGetContent()
Gets the widget content.
Declaration
public Bundle GetContent()
Returns
Type | Description |
---|---|
Bundle | The bundle containing widget content. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown in case of failed conditions. |
NotSupportedException | Thrown when the required features are not supported. |