Class WidgetControl.Instance
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.WidgetControl.dll
Class for the widget instance.
public class WidgetControl.Instance
- Inheritance
-
objectWidgetControl.Instance
Properties
View SourceId
The widget ID.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceChangeContent(Bundle, bool)
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. |
bool | force | True if you want to update your widget even if the provider is paused, otherwise false. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of an invalid argument. |
System.InvalidOperationException | Thrown in case of failed conditions. |
System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |
ChangePeriod(double)
Changes the update period for the widget instance.
Declaration
public void ChangePeriod(double period)
Parameters
Type | Name | Description |
---|---|---|
double | period |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of an invalid argument. |
System.InvalidOperationException | Thrown in case of failed conditions. |
System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |
GetContent()
Gets the widget content.
Declaration
public Bundle GetContent()
Returns
Type | Description |
---|---|
Bundle |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown in case of failed conditions. |