From 6a55d535e4d7bf10f49b7f56c7fd27e8d0e44dc5 Mon Sep 17 00:00:00 2001 From: Piotr Kosko
Learning how to retrieve information about installed widget instances makes the Widget Service API more useful:
+ +Define a success handler implementing the WidgetInstancesCallback
interface (in mobile and wearable applications). Optionally, you can specify an error handler too.
@@ -229,6 +235,12 @@ myWidget.removeStateChangeListener(watchId);
To change the update interval for the widget instance:
diff --git a/org.tizen.web.apireference/html/device_api/mobile/tizen/widgetservice.html b/org.tizen.web.apireference/html/device_api/mobile/tizen/widgetservice.html index 469a3f4..1e1ad75 100755 --- a/org.tizen.web.apireference/html/device_api/mobile/tizen/widgetservice.html +++ b/org.tizen.web.apireference/html/device_api/mobile/tizen/widgetservice.html @@ -163,7 +163,7 @@ Do not use "widget" as name for one of your global variables, as it is a globaltypedef DOMString WidgetInstanceId;
@@ -1037,6 +1037,9 @@ catch (error) Since: 3.0
+Remark : + This method can only be used with widgets and applications which belong to the same package. Therefore, the widget should belong to the package of the Web application which calls this method. +
Parameters:
Remark : + This method can only be used with widgets and applications which belong to the same package. Therefore, the widget should belong to the package of the Web application which calls this method. +
Parameters:
Since: @@ -1356,6 +1362,9 @@ Every visual widget element added to the home screen is a single instance of som Since: 3.0
+Remark : + This method is not supported by Web Widget. +
Parameters:
Remark : + This method is not supported by Web Widget. +
Parameters:
Remark : + This method is not supported by Web Widget. +
Parameters:
typedef DOMString WidgetInstanceId;
@@ -679,6 +679,7 @@ catch (error)
readonly attribute boolean noDisplay;
DOMString getName(optional DOMString? locale) raises(WebAPIException);
+
void getInstances(WidgetInstancesCallback successCallback, optional ErrorCallback? errorCallback) raises(WebAPIException);
WidgetVariant getVariant(WidgetSizeType sizeType) raises(WebAPIException);
@@ -1331,7 +1332,7 @@ Every visual widget element added to the home screen is a single instance of som
Since:
@@ -1356,6 +1357,9 @@ Every visual widget element added to the home screen is a single instance of som
Since:
Remark : + This method is not supported by Web Widget. +
Parameters:
Remark : + This method is not supported by Web Widget. +
Parameters:
Remark : + This method is not supported by Web Widget. +
Parameters: