Class RemoteViewFactory
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.RemoteView.dll
- API Level:
- 3
Represents a factory class for making the RemoteView objects.
public static class RemoteViewFactory
- Inheritance
-
RemoteViewFactory
Methods
View SourceCreate(EvasObject, String, String, Double, Boolean, Boolean, Boolean)
Creates a RemoteView object.
Declaration
public static RemoteView Create(EvasObject parent, string widgetId, string content, double period, bool previewImage = true, bool overlayText = true, bool loadingMessage = true)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent object. |
String | widgetId | Widget ID. |
String | content | Contents that will be given to the widget instance. |
Double | period | Update period. |
Boolean | previewImage | True if you want to show the preview image. |
Boolean | overlayText | True if you want to show the overlay text. |
Boolean | loadingMessage | True if you want to show the loading message. |
Returns
Type | Description |
---|---|
RemoteView | RemoteView object. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when this operation failed. |
UnauthorizedAccessException | Thrown when this operation is denied. |
NotSupportedException | Thrown when this operation is not supported for this device. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
View SourceInit(EvasObject)
Initializes RemoteViewFactory.
Declaration
public static void Init(EvasObject win)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | win | Window object that will contain RemoteViews that are generated by RemoteViewFactory. All the remote views will be located in the specified window object. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when this operation failed. |
UnauthorizedAccessException | Thrown when this operation is denied. |
NotSupportedException | Thrown when this operation is not supported for this device. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
View SourceShutdown()
Finalizes the RemoteViewFactory.
Declaration
public static void Shutdown()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when this operation failed. |
UnauthorizedAccessException | Thrown when this operation is denied. |
NotSupportedException | Thrown when this operation is not supported for this device. |