From 353ee6910e6a7786bf5d6f915528ac9fc1bb03d9 Mon Sep 17 00:00:00 2001
From: Hyunjin Park
+ Since:
+ 2.4
+
Since:
@@ -264,9 +293,6 @@ The NotificationManager interface provides access to the notification object.
Exceptions:
- with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
-
with error type InvalidValuesError, if any of the input
parameters contain an invalid value.
+ with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
+
with error type UnknownError, if any other error occurs.
Exceptions:
- with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
-
with error type InvalidValuesError, if any of the input
parameters contain an invalid value.
+ with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
+
with error type UnknownError, if any other error occurs.
Exceptions:
- with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
-
with error type NotFoundError, if NotificationId is not found in the previously posted notification.
with error type SecurityError, if the application does not have the privilege to call this method.
+ with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter.
+
with error type UnknownError, if any other error occurs.
+ Since:
+ 2.4
+
+Given parameters consist of timeOn and timeOff in miliseconds, RGBA color and LEDCustomFlags combination.
+For the color first three bytes are RGB values. The last byte is opacity. For example "#FFFF0080". There is also another possibility when the last byte
+is not given (in this case alpha is assumed to have value 0xff). In this case only RGB values are given. For example: "#ff0000" that is equivalent of "#ff0000ff".
+
+ Privilege level:
+ public
+
+ Privilege:
+ http://tizen.org/privilege/led
+ Parameters: Exceptions:
+ with error type InvalidValuesError, if any of the input parameters contain an invalid value.
+
+ with error type SecurityError, if the application does not have the privilege to call this method or if the author signature does not match that of the designated application.
+
+ with error type TypeMismatchError, if any input parameter is not compatible with the expected type for that parameter
+
+ with error type UnknownError, if the method cannot be completed because of an unknown error.
+ Code example:
+ Since:
+ 2.4
+
+ Privilege level:
+ public
+
+ Privilege:
+ http://tizen.org/privilege/led
+ Exceptions:
+ with error type SecurityError, if the application does not have the privilege to call this method.
+
+ with error type UnknownError, if the method cannot be completed because of an unknown error.
+ Code example:
+If an application uses playLEDCustomEffect() or stopLEDCustomEffect(), declare the following feature requirements in the config file to guarantee the running of this application on a device which has a led:
+
-The following provides an overview of the tree data structure:
+Web applications can use this API to access the following system properties:
Not all above properties may be available on every Tizen device. For instance, a device may not support the telephony feature. In that case, CELLULAR_NETWORK and SIM are not available.
For more information on the SystemInfo features, see System Information Guide.
@@ -124,15 +130,17 @@ For more information on the SystemInfo features, see SystemInfoWifiNetwork
-
Since:
2.0
Remark :
- LOCALE and PERIPHERAL are supported since Tizen 2.1
+ CAMERA_FLASH is supported since Tizen 2.4
Remark :
- MEMORY is supported since Tizen 2.3
+ ETHERNET_NETWORK is supported since Tizen 2.4
Remark :
- CAMERA_FLASH is supported since Tizen 2.4
+ LOCALE and PERIPHERAL are supported since Tizen 2.1
+ Remark :
+ MEMORY is supported since Tizen 2.3
+ Privilege level:
+ public
+
+ Privilege:
+ http://tizen.org/privilege/telephony
+ Remark :
If the given property is not supported, NotSupportedError would be passed through a ErrorCallback() since Tizen 2.3.
Remark :
If system provides more than one value for the system property, the primary(first) system property is returned through SystemInfoSuccessCallback.
Remark :
+ http://tizen.org/privilege/telephony has been required only for CELLULAR_NETWORK property since Tizen 2.4.
+ Parameters:
with error type UnknownError in any other error case.
+ with error type SecurityError, this error is only thrown for CELLULAR_NETWORK property when an application does not declare http://tizen.org/privilege/telephony privilege in config.xml.
+
+ Privilege level:
+ public
+
+ Privilege:
+ http://tizen.org/privilege/telephony
+ Remark :
see getCount().
Remark :
+ http://tizen.org/privilege/telephony has been required only for CELLULAR_NETWORK property since Tizen 2.4.
+ Parameters: Exceptions:
+
with error type TypeMismatchError, if the input parameter is not compatible with the expected type.
-
+ with error type SecurityError, this error is only thrown for CELLULAR_NETWORK property when an application does not declare http://tizen.org/privilege/telephony privilege in config.xml.
+
+ Privilege level:
+ public
+
+ Privilege:
+ http://tizen.org/privilege/telephony
+ Remark :
The errorCallback() is newly added as an optional parameter since Tizen 2.3.
Remark :
+ http://tizen.org/privilege/telephony has been required only for CELLULAR_NETWORK property since Tizen 2.4.
+ Parameters:
with error type UnknownError in any other error case.
+ with error type SecurityError, this error is only thrown for CELLULAR_NETWORK property when an application does not declare http://tizen.org/privilege/telephony privilege in config.xml.
+
@@ -49,7 +51,9 @@ For more information on the Notification features, see Full WebIDL
+
@@ -71,7 +75,9 @@ For more information on the Notification features, see remove (NotificationId id)
void removeAll ()
Notification get (NotificationId id)
- Notification[] getAll ()
+ Notification[] getAll ()
+ void playLEDCustomEffect (long timeOn, long timeOff, DOMString color, LEDCustomFlags[] flags)
+ void stopLEDCustomEffect ()
+Notification
@@ -175,6 +181,26 @@ The following notification progress types are supported:
+1.5. LEDCustomFlags
+ enum LEDCustomFlags {"LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"};
+
+
+ 2. Interfaces
@@ -217,6 +243,9 @@ Notification API.
Notification[] getAll() raises(WebAPIException);
+ void playLEDCustomEffect(long timeOn, long timeOff, DOMString color, LEDCustomFlags[] flags) raises(WebAPIException);
+
+ void stopLEDCustomEffect() raises(WebAPIException);
};
@@ -337,9 +366,6 @@ parameters contain an invalid value.
@@ -397,15 +426,15 @@ parameters contain an invalid value.
@@ -552,6 +581,127 @@ parameters contain an invalid value.
playLEDCustomEffect
+void playLEDCustomEffect(long timeOn, long timeOff, DOMString color, LEDCustomFlags[] flags);
+
+
+
+
+
+ try {
+ tizen.notification.playLEDCustomEffect(1000, 1000, "#FFFF0080", ["LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"]);
+ } catch(e) {
+ console.log("Error Exception, error name : " + e.name + ", error message : " + e.message);
+ }
+
+stopLEDCustomEffect
+void stopLEDCustomEffect();
+
+
+
+ try {
+ tizen.notification.playLEDCustomEffect(1000, 1000, "#FFFF0080", ["LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"]);
+ setTimeout(function () {
+ tizen.notification.stopLEDCustomEffect();
+ }, 5000);
+ } catch(e) {
+ console.log("Error Exception, error name : " + e.name + ", error message : " + e.message);
+ }
+
+3. Full WebIDL
+3. Related Feature
+4. Full WebIDL
module Notification {
typedef DOMString NotificationId;
@@ -1036,6 +1200,7 @@ By default, this attribute is set to null.
enum NotificationProgressType { "PERCENTAGE", "BYTE" };
+ enum LEDCustomFlags {"LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"};
[NoInterfaceObject] interface NotificationObject {
readonly attribute NotificationManager notification;
@@ -1056,6 +1221,9 @@ By default, this attribute is set to null.
Notification[] getAll() raises(WebAPIException);
+ void playLEDCustomEffect(long timeOn, long timeOff, DOMString color, LEDCustomFlags[] flags) raises(WebAPIException);
+
+ void stopLEDCustomEffect() raises(WebAPIException);
};
diff --git a/org.tizen.web.apireference/html/device_api/mobile/tizen/systeminfo.html b/org.tizen.web.apireference/html/device_api/mobile/tizen/systeminfo.html
index e2f197b..14fcf32 100644
--- a/org.tizen.web.apireference/html/device_api/mobile/tizen/systeminfo.html
+++ b/org.tizen.web.apireference/html/device_api/mobile/tizen/systeminfo.html
@@ -17,37 +17,39 @@
This API also provides interfaces and methods that can retrieve statuses of hardware devices, get the value of selected properties, and subscribe to asynchronous notifications of changes for selected values.
To check the available SystemInfoPropertyId, tizen.systeminfo.getCapability() can be used.
@@ -56,13 +58,17 @@ Not all above properties may be available on every Tizen device. For instance, a
+
@@ -255,19 +267,22 @@ For more information on the SystemInfo features, see
The device property identifier.
-SystemInfoCellularNetwork
enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "CELLULAR_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" };
+ enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" };
@@ -701,6 +727,9 @@ NotSupportedError - If the given property is not supported. (since Ti
@@ -787,9 +827,14 @@ NotSupportedError - If the given property is not supported.
+
+
@@ -898,6 +954,9 @@ NotSupportedError - If the given property is not supported. (since Ti
+ Privilege level: + public +
++ Privilege: + http://tizen.org/privilege/telephony +
+Remark : + http://tizen.org/privilege/telephony has been required only for CELLULAR_NETWORK property since Tizen 2.4. +
Parameters:
with error type UnknownError in any other error case.
+ with error type SecurityError, this error is only thrown for CELLULAR_NETWORK property when an application does not declare http://tizen.org/privilege/telephony privilege in config.xml. +
[NoInterfaceObject] interface SystemInfoEthernetNetwork : SystemInfoProperty { + readonly attribute DOMString cable; + + readonly attribute DOMString status; + + readonly attribute DOMString ipAddress; + + readonly attribute DOMString ipv6Address; + + readonly attribute DOMString macAddress; + };+
+ Since: + 2.4 +
+ ++ Since: + 2.4 +
++ Since: + 2.4 +
++ Since: + 2.4 +
++ Since: + 2.4 +
++It is written in MM:MM:MM:SS:SS:SS format. +
++ Since: + 2.4 +
+Remark : +
Warning: http://tizen.org/privilege/systemmanager (partner level) has been deprecated since 2.3.1. Instead, use http://tizen.org/privilege/telephony.
Remark : +
Warning: http://tizen.org/privilege/systemmanager (partner level) has been deprecated since 2.3.1. Instead, use http://tizen.org/privilege/telephony.
Remark : +
Warning: http://tizen.org/privilege/systemmanager (partner level) has been deprecated since 2.3.1. Instead, use http://tizen.org/privilege/telephony.
+If the specified brightness value is not supported by the device, the brightness is rounded down to the nearest supported brightness value. +
+
Privilege level:
public
@@ -3331,26 +3491,34 @@ The getPropertyValue() method retrieves the SystemInfoCameraFlash<
-To guarantee the running of this application on a device which supports Wi-Fi, declare the following feature requirements in the config file:
+To guarantee the running of the application on a device which has camera back flash and control it, declare the following feature requirements in the config file:
-To guarantee the running of this application on a device which supports telephony feature, declare the following feature requirements in the config file:
+To guarantee the running of the application on a device which supports telephony feature, declare the following feature requirements in the config file:
+To guarantee the running of the application on a device which supports Wi-Fi, declare the following feature requirements in the config file:
+
module SystemInfo { - enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "CELLULAR_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" }; + enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" }; enum SystemInfoNetworkType { "NONE", "2G", "2.5G", "3G", "4G", "WIFI", "ETHERNET", "UNKNOWN" }; @@ -3636,6 +3804,18 @@ To guarantee the running of this application on a device which supports telephon readonly attribute double signalStrength; }; + [NoInterfaceObject] interface SystemInfoEthernetNetwork : SystemInfoProperty { + readonly attribute DOMString cable; + + readonly attribute DOMString status; + + readonly attribute DOMString ipAddress; + + readonly attribute DOMString ipv6Address; + + readonly attribute DOMString macAddress; + }; + [NoInterfaceObject] interface SystemInfoCellularNetwork : SystemInfoProperty { readonly attribute DOMString status; -- 2.7.4