From ff2cf2f30e909f095c35343efe5eeca1fdad0c20 Mon Sep 17 00:00:00 2001 From: Lukasz Bardeli Date: Wed, 10 May 2017 09:58:39 +0200 Subject: [PATCH] [Systeminfo] Adjust html to new standards PS6: Guide topics modified due to API updates. Since the old getCapabilities() method has now been deleted from the API, I think we can delete a note about it in the guide too. PS7: Rebase Change-Id: Ic2b9eccf9c6c1118e53e76a625908d371b2452d6 Signed-off-by: Lukasz Bardeli --- .../html/web/device/system_information_w.htm | 5 - .../html/web/device/task_systeminfo_w.htm | 2 +- .../html/device_api/mobile/tizen/systeminfo.html | 240 ++++---------------- .../html/device_api/tv/tizen/systeminfo.html | 245 +++++---------------- .../html/device_api/wearable/tizen/systeminfo.html | 240 ++++---------------- 5 files changed, 143 insertions(+), 589 deletions(-) diff --git a/org.tizen.guides/html/web/device/system_information_w.htm b/org.tizen.guides/html/web/device/system_information_w.htm index 65a3c03..ae41f00 100644 --- a/org.tizen.guides/html/web/device/system_information_w.htm +++ b/org.tizen.guides/html/web/device/system_information_w.htm @@ -138,11 +138,6 @@ console.log(" Barometer = " + barometer); -
- Note - The getCapabilities() method has been deprecated since Tizen 2.3. Use the getCapability() method instead. -
-

For a list of available keys and their meaning, see the device capability keys (in mobile and wearable applications).

diff --git a/org.tizen.guides/html/web/device/task_systeminfo_w.htm b/org.tizen.guides/html/web/device/task_systeminfo_w.htm index c981b08..943ccb5 100644 --- a/org.tizen.guides/html/web/device/task_systeminfo_w.htm +++ b/org.tizen.guides/html/web/device/task_systeminfo_w.htm @@ -188,7 +188,7 @@ function onStorageSuccess(storages) Math.floor(storages[i].availableCapacity / 1000000) + " MB") + make2lineListItem("Removable", - (storages[i].isRemoveable == true ? "Yes" : "No")); + (storages[i].isRemovable == true ? "Yes" : "No")); } $.mobile.changePage("#info"); 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 0be22e9..d585352 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 @@ -182,8 +182,6 @@ For more information on the SystemInfo features, see getTotalMemory ()
long long getAvailableMemory ()
-
any getCapability (DOMString key)
long getCount (SystemInfoPropertyId property)
void getPropertyValue (SystemInfoPropertyId property, SystemInfoPropertySuccessCallback successCallback, optional ErrorCallback? errorCallback)
@@ -194,10 +192,6 @@ For more information on the SystemInfo features, see SystemInfoDeviceCapability - - - SystemInfoOptions @@ -473,8 +467,6 @@ functionality of the SystemInfo API. long long getAvailableMemory() raises(WebAPIException); - SystemInfoDeviceCapability getCapabilities() raises(WebAPIException); - any getCapability(DOMString key) raises(WebAPIException); long getCount(SystemInfoPropertyId property) raises(WebAPIException); @@ -596,7 +588,7 @@ var deviceCapabilities; deviceCapabilities = tizen.systeminfo.getCapabilities(); if (deviceCapabilities.bluetooth) { - console.log("Bluetooth is supported"); +  console.log("Bluetooth is supported"); } @@ -644,13 +636,13 @@ The additional keys for the custom device capability are specified by OEM's and

Code example:

 try
 {
-   /* Checks if a device supports bluetooth API */
-   var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
-   console.log(" Bluetooth = " + bluetooth);
+  /* Checks if a device supports bluetooth API */
+  var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
+  console.log(" Bluetooth = " + bluetooth);
 }
 catch (error)
 {
-   console.log("Error name: " + error.name + ", message: " + error.message);
+  console.log("Error name: " + error.name + ", message: " + error.message);
 }
 
@@ -698,11 +690,11 @@ That is the length of array retrieved by the getPropertyValueArray() method for var count = tizen.systeminfo.getCount("SIM"); if (count === 0) { - console.log("There is no available SIM card."); +  console.log("There is no available SIM card."); } else { - console.log("There is(are) " + count + " SIM card(s) available."); +  console.log("There is(are) " + count + " SIM card(s) available."); } @@ -781,12 +773,12 @@ NotSupportedError - If the given property is not supported. (since Ti

Code example:

 function onSuccessCallback(cpu)
 {
-   console.log("The cpu load is " + cpu.load);
+  console.log("The cpu load is " + cpu.load);
 }
 
 function onErrorCallback(error)
 {
-   console.log("An error occurred " + error.message);
+  console.log("An error occurred " + error.message);
 }
 
 tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
@@ -796,25 +788,25 @@ tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
 

Code example:

 function onSuccessCallback(cellular)
 {
-   console.log("The status of the cellular network is " + cellular.status);
+  console.log("The status of the cellular network is " + cellular.status);
 }
 
 function onErrorCallback(error)
 {
-   console.log("An error occurred " + error.message);
-   /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
+  console.log("An error occurred " + error.message);
+  /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
 }
 
 var telephony_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony");
 
 if (telephony_capability === true)
 {
-   /* onSuccessCallback will be invoked */
-   tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
+  /* onSuccessCallback will be invoked */
+  tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
 }
 else
 {
-   console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
+  console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
 }
 
@@ -889,30 +881,30 @@ NotSupportedError - If the given property is not supported.

Code example:

 function successCB(property)
 {
-   console.log("The SIM's current state is " + property.state);
+  console.log("The SIM's current state is " + property.state);
 }
 
 function successArrayCB(properties)
 {
-   console.log("The number of the returned system properties is " + properties.length);
-   for (var i = 0; i < properties.length; i++)
-   {
-      console.log("[" + i + "] SIM's state is " + properties[i].state);
-   }
+  console.log("The number of the returned system properties is " + properties.length);
+  for (var i = 0; i < properties.length; i++)
+  {
+    console.log("[" + i + "] SIM's state is " + properties[i].state);
+  }
 }
 
 var count = tizen.systeminfo.getCount("SIM");
 if (count === 0)
 {
-   console.log("This device does not provide SIM card.");
+  console.log("This device does not provide SIM card.");
 }
 else if (count > 1)
 {
-   tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
+  tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
 }
 else
 {
-   tizen.systeminfo.getPropertyValue("SIM", successCB);
+  tizen.systeminfo.getPropertyValue("SIM", successCB);
 }
 
@@ -1016,7 +1008,7 @@ NotSupportedError - If the given property is not supported. (since Ti

Code example:

 function onSuccessCallback(cpu)
 {
-   console.log("The cpu load: " + cpu.load);
+  console.log("The cpu load: " + cpu.load);
 }
 
 tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback, {lowThreshold: 0.2});
@@ -1152,12 +1144,12 @@ parameters contain an invalid value.
 var id = null;
 function onSuccessCallback(cpu)
 {
-   console.log("New value for CPU load is " + cpu.load);
-   if (id != null)
-   {
-      /* After receiving the first notification, clear it */
-      tizen.systeminfo.removePropertyValueChangeListener(id);
-   }
+  console.log("New value for CPU load is " + cpu.load);
+  if (id != null)
+  {
+    /* After receiving the first notification, clear it */
+    tizen.systeminfo.removePropertyValueChangeListener(id);
+  }
 }
 
 id = tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback);
@@ -2359,7 +2351,6 @@ Any threshold parameter used in a watch function to monitor this property applie
 
     readonly attribute boolean isRemovable;
 
-    readonly attribute boolean isRemoveable;
   };
@@ -3430,10 +3421,11 @@ identify a mobile phone operator/carrier using the GSM, CDMA, iDEN, TETRA and UM

Code example:

 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-   console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
-}, function(error)
+  console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
+},
+function(error)
 {
-   console.log("Error, name: " + error.name + ", message: " + error.message);
+  console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 
@@ -3549,17 +3541,18 @@ If the specified brightness value is not supported by the device, the brightness

Code example:

 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-   try
-   {
-      flash.setBrightness(1);
-   }
-   catch (error)
-   {
-      console.log("Setting flash brightness failed: " + error.message);
-   }
-}, function(error)
+  try
+  {
+    flash.setBrightness(1);
+  }
+  catch (error)
+  {
+    console.log("Setting flash brightness failed: " + error.message);
+  }
+},
+function(error)
 {
-   console.log("Error, name: " + error.name + ", message: " + error.message);
+  console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 
@@ -3659,8 +3652,6 @@ To guarantee the running of the application on a device which supports network p long long getAvailableMemory() raises(WebAPIException); - SystemInfoDeviceCapability getCapabilities() raises(WebAPIException); - any getCapability(DOMString key) raises(WebAPIException); long getCount(SystemInfoPropertyId property) raises(WebAPIException); @@ -3686,144 +3677,6 @@ To guarantee the running of the application on a device which supports network p void removePropertyValueChangeListener(unsigned long listenerId) raises(WebAPIException); }; - [NoInterfaceObject] interface SystemInfoDeviceCapability { - readonly attribute boolean bluetooth; - - readonly attribute boolean nfc; - - readonly attribute boolean nfcReservedPush ; - - readonly attribute unsigned short multiTouchCount; - - readonly attribute boolean inputKeyboard; - - readonly attribute boolean inputKeyboardLayout; - - readonly attribute boolean wifi; - - readonly attribute boolean wifiDirect; - - readonly attribute boolean opengles; - - readonly attribute DOMString openglestextureFormat; - - readonly attribute boolean openglesVersion1_1; - - readonly attribute boolean openglesVersion2_0; - - readonly attribute boolean fmRadio; - - readonly attribute DOMString platformVersion raises(WebAPIException); - - readonly attribute DOMString webApiVersion raises(WebAPIException); - - readonly attribute DOMString nativeApiVersion raises(WebAPIException); - - readonly attribute DOMString platformName; - - readonly attribute boolean camera; - - readonly attribute boolean cameraFront; - - readonly attribute boolean cameraFrontFlash; - - readonly attribute boolean cameraBack; - - readonly attribute boolean cameraBackFlash; - - readonly attribute boolean location; - - readonly attribute boolean locationGps; - - readonly attribute boolean locationWps; - - readonly attribute boolean microphone; - - readonly attribute boolean usbHost; - - readonly attribute boolean usbAccessory; - - readonly attribute boolean screenOutputRca; - - readonly attribute boolean screenOutputHdmi; - - readonly attribute DOMString platformCoreCpuArch; - - readonly attribute DOMString platformCoreFpuArch; - - readonly attribute boolean sipVoip; - - readonly attribute DOMString duid; - - readonly attribute boolean speechRecognition; - - readonly attribute boolean speechSynthesis; - - readonly attribute boolean accelerometer; - - readonly attribute boolean accelerometerWakeup; - - readonly attribute boolean barometer; - - readonly attribute boolean barometerWakeup; - - readonly attribute boolean gyroscope; - - readonly attribute boolean gyroscopeWakeup; - - readonly attribute boolean magnetometer; - - readonly attribute boolean magnetometerWakeup; - - readonly attribute boolean photometer; - - readonly attribute boolean photometerWakeup; - - readonly attribute boolean proximity; - - readonly attribute boolean proximityWakeup; - - readonly attribute boolean tiltmeter; - - readonly attribute boolean tiltmeterWakeup; - - readonly attribute boolean dataEncryption; - - readonly attribute boolean graphicsAcceleration; - - readonly attribute boolean push; - - readonly attribute boolean telephony; - - readonly attribute boolean telephonyMms; - - readonly attribute boolean telephonySms; - - readonly attribute boolean screenSizeNormal; - - readonly attribute boolean screenSize480_800; - - readonly attribute boolean screenSize720_1280; - - readonly attribute boolean autoRotation; - - readonly attribute boolean shellAppWidget; - - readonly attribute boolean visionImageRecognition; - - readonly attribute boolean visionQrcodeGeneration; - - readonly attribute boolean visionQrcodeRecognition; - - readonly attribute boolean visionFaceRecognition; - - readonly attribute boolean secureElement; - - readonly attribute boolean nativeOspCompatible; - - readonly attribute SystemInfoProfile profile; - }; - dictionary SystemInfoOptions { unsigned long timeout; @@ -3866,7 +3719,6 @@ To guarantee the running of the application on a device which supports network p readonly attribute boolean isRemovable; - readonly attribute boolean isRemoveable; }; [NoInterfaceObject] interface SystemInfoDisplay : SystemInfoProperty { diff --git a/org.tizen.web.apireference/html/device_api/tv/tizen/systeminfo.html b/org.tizen.web.apireference/html/device_api/tv/tizen/systeminfo.html index ae59c5f..b548270 100644 --- a/org.tizen.web.apireference/html/device_api/tv/tizen/systeminfo.html +++ b/org.tizen.web.apireference/html/device_api/tv/tizen/systeminfo.html @@ -53,6 +53,8 @@ STORAGE VIDEOSOURCE (Since: 2.3)
  • WIFI_NETWORK
  • +
  • +ADS (Since: 3.0)
  • 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.

    To check the available SystemInfoPropertyId, tizen.systeminfo.getCapability() can be used. @@ -197,8 +199,6 @@ For more information on the SystemInfo features, see getTotalMemory ()

    long long getAvailableMemory ()
    -
    any getCapability (DOMString key)
    long getCount (SystemInfoPropertyId property)
    void getPropertyValue (SystemInfoPropertyId property, SystemInfoPropertySuccessCallback successCallback, optional ErrorCallback? errorCallback)
    @@ -209,10 +209,6 @@ For more information on the SystemInfo features, see SystemInfoDeviceCapability - - - SystemInfoOptions @@ -620,8 +616,6 @@ functionality of the SystemInfo API. long long getAvailableMemory() raises(WebAPIException); - SystemInfoDeviceCapability getCapabilities() raises(WebAPIException); - any getCapability(DOMString key) raises(WebAPIException); long getCount(SystemInfoPropertyId property) raises(WebAPIException); @@ -743,7 +737,7 @@ var deviceCapabilities; deviceCapabilities = tizen.systeminfo.getCapabilities(); if (deviceCapabilities.bluetooth) { - console.log("Bluetooth is supported"); +  console.log("Bluetooth is supported"); }
    @@ -791,13 +785,13 @@ The additional keys for the custom device capability are specified by OEM's and

    Code example:

     try
     {
    -   /* Checks if a device supports bluetooth API */
    -   var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
    -   console.log(" Bluetooth = " + bluetooth);
    +  /* Checks if a device supports bluetooth API */
    +  var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
    +  console.log(" Bluetooth = " + bluetooth);
     }
     catch (error)
     {
    -   console.log("Error name: " + error.name + ", message: " + error.message);
    +  console.log("Error name: " + error.name + ", message: " + error.message);
     }
     
    @@ -845,11 +839,11 @@ That is the length of array retrieved by the getPropertyValueArray() method for var count = tizen.systeminfo.getCount("SIM"); if (count === 0) { - console.log("There is no available SIM card."); +  console.log("There is no available SIM card."); } else { - console.log("There is(are) " + count + " SIM card(s) available."); +  console.log("There is(are) " + count + " SIM card(s) available."); } @@ -928,12 +922,12 @@ NotSupportedError - If the given property is not supported. (since Ti

    Code example:

     function onSuccessCallback(cpu)
     {
    -   console.log("The cpu load is " + cpu.load);
    +  console.log("The cpu load is " + cpu.load);
     }
     
     function onErrorCallback(error)
     {
    -   console.log("An error occurred " + error.message);
    +  console.log("An error occurred " + error.message);
     }
     
     tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
    @@ -943,25 +937,25 @@ tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
     

    Code example:

     function onSuccessCallback(cellular)
     {
    -   console.log("The status of the cellular network is " + cellular.status);
    +  console.log("The status of the cellular network is " + cellular.status);
     }
     
     function onErrorCallback(error)
     {
    -   console.log("An error occurred " + error.message);
    -   /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
    +  console.log("An error occurred " + error.message);
    +  /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
     }
     
     var telephony_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony");
     
     if (telephony_capability === true)
     {
    -   /* onSuccessCallback will be invoked */
    -   tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
    +  /* onSuccessCallback will be invoked */
    +  tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
     }
     else
     {
    -   console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
    +  console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
     }
     
    @@ -1036,30 +1030,30 @@ NotSupportedError - If the given property is not supported.

    Code example:

     function successCB(property)
     {
    -   console.log("The SIM's current state is " + property.state);
    +  console.log("The SIM's current state is " + property.state);
     }
     
     function successArrayCB(properties)
     {
    -   console.log("The number of the returned system properties is " + properties.length);
    -   for (var i = 0; i < properties.length; i++)
    -   {
    -      console.log("[" + i + "] SIM's state is " + properties[i].state);
    -   }
    +  console.log("The number of the returned system properties is " + properties.length);
    +  for (var i = 0; i < properties.length; i++)
    +  {
    +    console.log("[" + i + "] SIM's state is " + properties[i].state);
    +  }
     }
     
     var count = tizen.systeminfo.getCount("SIM");
     if (count === 0)
     {
    -   console.log("This device does not provide SIM card.");
    +  console.log("This device does not provide SIM card.");
     }
     else if (count > 1)
     {
    -   tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
    +  tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
     }
     else
     {
    -   tizen.systeminfo.getPropertyValue("SIM", successCB);
    +  tizen.systeminfo.getPropertyValue("SIM", successCB);
     }
     
    @@ -1163,7 +1157,7 @@ NotSupportedError - If the given property is not supported. (since Ti

    Code example:

     function onSuccessCallback(cpu)
     {
    -   console.log("The cpu load: " + cpu.load);
    +  console.log("The cpu load: " + cpu.load);
     }
     
     tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback, {lowThreshold: 0.2});
    @@ -1299,12 +1293,12 @@ parameters contain an invalid value.
     var id = null;
     function onSuccessCallback(cpu)
     {
    -   console.log("New value for CPU load is " + cpu.load);
    -   if (id != null)
    -   {
    -      /* After receiving the first notification, clear it */
    -      tizen.systeminfo.removePropertyValueChangeListener(id);
    -   }
    +  console.log("New value for CPU load is " + cpu.load);
    +  if (id != null)
    +  {
    +    /* After receiving the first notification, clear it */
    +    tizen.systeminfo.removePropertyValueChangeListener(id);
    +  }
     }
     
     id = tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback);
    @@ -1320,8 +1314,7 @@ id = tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback);
      SystemInfoDeviceCapability object.
               
     

    Deprecated. - SystemInfoDeviceCapability is deprecated since Tizen 2.3 and will be removed in Tizen 3.0. -It is recommended to use the getCapability() method (since Tizen 2.3) instead to query device capabilities. + Deprecated since 2.3. Instead, use getCapability() to query device capabilities.

      [NoInterfaceObject] interface SystemInfoDeviceCapability {
         readonly attribute boolean bluetooth;
    @@ -2507,7 +2500,6 @@ Any threshold parameter used in a watch function to monitor this property applie
     
         readonly attribute boolean isRemovable;
     
    -    readonly attribute boolean isRemoveable;
       };
    @@ -2587,7 +2579,7 @@ The following values are supported: true if this unit can be removed from the system (such as an sdcard unplugged), false otherwise.

    Deprecated. - A typographic error. + Deprecated since 2.1. Instead, use isRemovable.

    Since: @@ -3888,10 +3880,11 @@ If the source is "HDMI 2", the number is 2.

    Code example:

     tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
     {
    -   console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
    -}, function(error)
    +  console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
    +},
    +function(error)
     {
    -   console.log("Error, name: " + error.name + ", message: " + error.message);
    +  console.log("Error, name: " + error.name + ", message: " + error.message);
     });
     
    @@ -4007,17 +4000,18 @@ If the specified brightness value is not supported by the device, the brightness

    Code example:

     tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
     {
    -   try
    -   {
    -      flash.setBrightness(1);
    -   }
    -   catch (error)
    -   {
    -      console.log("Setting flash brightness failed: " + error.message);
    -   }
    -}, function(error)
    +  try
    +  {
    +    flash.setBrightness(1);
    +  }
    +  catch (error)
    +  {
    +    console.log("Setting flash brightness failed: " + error.message);
    +  }
    +},
    +function(error)
     {
    -   console.log("Error, name: " + error.name + ", message: " + error.message);
    +  console.log("Error, name: " + error.name + ", message: " + error.message);
     });
     
    @@ -4178,144 +4172,6 @@ To guarantee the running of the application on a device which supports network p void removePropertyValueChangeListener(unsigned long listenerId) raises(WebAPIException); }; - [NoInterfaceObject] interface SystemInfoDeviceCapability { - readonly attribute boolean bluetooth; - - readonly attribute boolean nfc; - - readonly attribute boolean nfcReservedPush ; - - readonly attribute unsigned short multiTouchCount; - - readonly attribute boolean inputKeyboard; - - readonly attribute boolean inputKeyboardLayout; - - readonly attribute boolean wifi; - - readonly attribute boolean wifiDirect; - - readonly attribute boolean opengles; - - readonly attribute DOMString openglestextureFormat; - - readonly attribute boolean openglesVersion1_1; - - readonly attribute boolean openglesVersion2_0; - - readonly attribute boolean fmRadio; - - readonly attribute DOMString platformVersion raises(WebAPIException); - - readonly attribute DOMString webApiVersion raises(WebAPIException); - - readonly attribute DOMString nativeApiVersion raises(WebAPIException); - - readonly attribute DOMString platformName; - - readonly attribute boolean camera; - - readonly attribute boolean cameraFront; - - readonly attribute boolean cameraFrontFlash; - - readonly attribute boolean cameraBack; - - readonly attribute boolean cameraBackFlash; - - readonly attribute boolean location; - - readonly attribute boolean locationGps; - - readonly attribute boolean locationWps; - - readonly attribute boolean microphone; - - readonly attribute boolean usbHost; - - readonly attribute boolean usbAccessory; - - readonly attribute boolean screenOutputRca; - - readonly attribute boolean screenOutputHdmi; - - readonly attribute DOMString platformCoreCpuArch; - - readonly attribute DOMString platformCoreFpuArch; - - readonly attribute boolean sipVoip; - - readonly attribute DOMString duid; - - readonly attribute boolean speechRecognition; - - readonly attribute boolean speechSynthesis; - - readonly attribute boolean accelerometer; - - readonly attribute boolean accelerometerWakeup; - - readonly attribute boolean barometer; - - readonly attribute boolean barometerWakeup; - - readonly attribute boolean gyroscope; - - readonly attribute boolean gyroscopeWakeup; - - readonly attribute boolean magnetometer; - - readonly attribute boolean magnetometerWakeup; - - readonly attribute boolean photometer; - - readonly attribute boolean photometerWakeup; - - readonly attribute boolean proximity; - - readonly attribute boolean proximityWakeup; - - readonly attribute boolean tiltmeter; - - readonly attribute boolean tiltmeterWakeup; - - readonly attribute boolean dataEncryption; - - readonly attribute boolean graphicsAcceleration; - - readonly attribute boolean push; - - readonly attribute boolean telephony; - - readonly attribute boolean telephonyMms; - - readonly attribute boolean telephonySms; - - readonly attribute boolean screenSizeNormal; - - readonly attribute boolean screenSize480_800; - - readonly attribute boolean screenSize720_1280; - - readonly attribute boolean autoRotation; - - readonly attribute boolean shellAppWidget; - - readonly attribute boolean visionImageRecognition; - - readonly attribute boolean visionQrcodeGeneration; - - readonly attribute boolean visionQrcodeRecognition; - - readonly attribute boolean visionFaceRecognition; - - readonly attribute boolean secureElement; - - readonly attribute boolean nativeOspCompatible; - - readonly attribute SystemInfoProfile profile; - }; - dictionary SystemInfoOptions { unsigned long timeout; @@ -4358,7 +4214,6 @@ To guarantee the running of the application on a device which supports network p readonly attribute boolean isRemovable; - readonly attribute boolean isRemoveable; }; [NoInterfaceObject] interface SystemInfoDisplay : SystemInfoProperty { diff --git a/org.tizen.web.apireference/html/device_api/wearable/tizen/systeminfo.html b/org.tizen.web.apireference/html/device_api/wearable/tizen/systeminfo.html index 2016541..1826af1 100644 --- a/org.tizen.web.apireference/html/device_api/wearable/tizen/systeminfo.html +++ b/org.tizen.web.apireference/html/device_api/wearable/tizen/systeminfo.html @@ -182,8 +182,6 @@ For more information on the SystemInfo features, see getTotalMemory ()
    long long getAvailableMemory ()
    -
    any getCapability (DOMString key)
    long getCount (SystemInfoPropertyId property)
    void getPropertyValue (SystemInfoPropertyId property, SystemInfoPropertySuccessCallback successCallback, optional ErrorCallback? errorCallback)
    @@ -194,10 +192,6 @@ For more information on the SystemInfo features, see SystemInfoDeviceCapability - - - SystemInfoOptions @@ -473,8 +467,6 @@ functionality of the SystemInfo API. long long getAvailableMemory() raises(WebAPIException); - SystemInfoDeviceCapability getCapabilities() raises(WebAPIException); - any getCapability(DOMString key) raises(WebAPIException); long getCount(SystemInfoPropertyId property) raises(WebAPIException); @@ -596,7 +588,7 @@ var deviceCapabilities; deviceCapabilities = tizen.systeminfo.getCapabilities(); if (deviceCapabilities.bluetooth) { - console.log("Bluetooth is supported"); +  console.log("Bluetooth is supported"); }
    @@ -644,13 +636,13 @@ The additional keys for the custom device capability are specified by OEM's and

    Code example:

     try
     {
    -   /* Checks if a device supports bluetooth API */
    -   var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
    -   console.log(" Bluetooth = " + bluetooth);
    +  /* Checks if a device supports bluetooth API */
    +  var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
    +  console.log(" Bluetooth = " + bluetooth);
     }
     catch (error)
     {
    -   console.log("Error name: " + error.name + ", message: " + error.message);
    +  console.log("Error name: " + error.name + ", message: " + error.message);
     }
     
    @@ -698,11 +690,11 @@ That is the length of array retrieved by the getPropertyValueArray() method for var count = tizen.systeminfo.getCount("SIM"); if (count === 0) { - console.log("There is no available SIM card."); +  console.log("There is no available SIM card."); } else { - console.log("There is(are) " + count + " SIM card(s) available."); +  console.log("There is(are) " + count + " SIM card(s) available."); }
    @@ -781,12 +773,12 @@ NotSupportedError - If the given property is not supported. (since Ti

    Code example:

     function onSuccessCallback(cpu)
     {
    -   console.log("The cpu load is " + cpu.load);
    +  console.log("The cpu load is " + cpu.load);
     }
     
     function onErrorCallback(error)
     {
    -   console.log("An error occurred " + error.message);
    +  console.log("An error occurred " + error.message);
     }
     
     tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
    @@ -796,25 +788,25 @@ tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
     

    Code example:

     function onSuccessCallback(cellular)
     {
    -   console.log("The status of the cellular network is " + cellular.status);
    +  console.log("The status of the cellular network is " + cellular.status);
     }
     
     function onErrorCallback(error)
     {
    -   console.log("An error occurred " + error.message);
    -   /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
    +  console.log("An error occurred " + error.message);
    +  /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
     }
     
     var telephony_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony");
     
     if (telephony_capability === true)
     {
    -   /* onSuccessCallback will be invoked */
    -   tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
    +  /* onSuccessCallback will be invoked */
    +  tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
     }
     else
     {
    -   console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
    +  console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
     }
     
    @@ -889,30 +881,30 @@ NotSupportedError - If the given property is not supported.

    Code example:

     function successCB(property)
     {
    -   console.log("The SIM's current state is " + property.state);
    +  console.log("The SIM's current state is " + property.state);
     }
     
     function successArrayCB(properties)
     {
    -   console.log("The number of the returned system properties is " + properties.length);
    -   for (var i = 0; i < properties.length; i++)
    -   {
    -      console.log("[" + i + "] SIM's state is " + properties[i].state);
    -   }
    +  console.log("The number of the returned system properties is " + properties.length);
    +  for (var i = 0; i < properties.length; i++)
    +  {
    +    console.log("[" + i + "] SIM's state is " + properties[i].state);
    +  }
     }
     
     var count = tizen.systeminfo.getCount("SIM");
     if (count === 0)
     {
    -   console.log("This device does not provide SIM card.");
    +  console.log("This device does not provide SIM card.");
     }
     else if (count > 1)
     {
    -   tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
    +  tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
     }
     else
     {
    -   tizen.systeminfo.getPropertyValue("SIM", successCB);
    +  tizen.systeminfo.getPropertyValue("SIM", successCB);
     }
     
    @@ -1016,7 +1008,7 @@ NotSupportedError - If the given property is not supported. (since Ti

    Code example:

     function onSuccessCallback(cpu)
     {
    -   console.log("The cpu load: " + cpu.load);
    +  console.log("The cpu load: " + cpu.load);
     }
     
     tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback, {lowThreshold: 0.2});
    @@ -1152,12 +1144,12 @@ parameters contain an invalid value.
     var id = null;
     function onSuccessCallback(cpu)
     {
    -   console.log("New value for CPU load is " + cpu.load);
    -   if (id != null)
    -   {
    -      /* After receiving the first notification, clear it */
    -      tizen.systeminfo.removePropertyValueChangeListener(id);
    -   }
    +  console.log("New value for CPU load is " + cpu.load);
    +  if (id != null)
    +  {
    +    /* After receiving the first notification, clear it */
    +    tizen.systeminfo.removePropertyValueChangeListener(id);
    +  }
     }
     
     id = tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback);
    @@ -2359,7 +2351,6 @@ Any threshold parameter used in a watch function to monitor this property applie
     
         readonly attribute boolean isRemovable;
     
    -    readonly attribute boolean isRemoveable;
       };
    @@ -3430,10 +3421,11 @@ identify a mobile phone operator/carrier using the GSM, CDMA, iDEN, TETRA and UM

    Code example:

     tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
     {
    -   console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
    -}, function(error)
    +  console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
    +},
    +function(error)
     {
    -   console.log("Error, name: " + error.name + ", message: " + error.message);
    +  console.log("Error, name: " + error.name + ", message: " + error.message);
     });
     
    @@ -3549,17 +3541,18 @@ If the specified brightness value is not supported by the device, the brightness

    Code example:

     tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
     {
    -   try
    -   {
    -      flash.setBrightness(1);
    -   }
    -   catch (error)
    -   {
    -      console.log("Setting flash brightness failed: " + error.message);
    -   }
    -}, function(error)
    +  try
    +  {
    +    flash.setBrightness(1);
    +  }
    +  catch (error)
    +  {
    +    console.log("Setting flash brightness failed: " + error.message);
    +  }
    +},
    +function(error)
     {
    -   console.log("Error, name: " + error.name + ", message: " + error.message);
    +  console.log("Error, name: " + error.name + ", message: " + error.message);
     });
     
    @@ -3659,8 +3652,6 @@ To guarantee the running of the application on a device which supports network p long long getAvailableMemory() raises(WebAPIException); - SystemInfoDeviceCapability getCapabilities() raises(WebAPIException); - any getCapability(DOMString key) raises(WebAPIException); long getCount(SystemInfoPropertyId property) raises(WebAPIException); @@ -3686,144 +3677,6 @@ To guarantee the running of the application on a device which supports network p void removePropertyValueChangeListener(unsigned long listenerId) raises(WebAPIException); }; - [NoInterfaceObject] interface SystemInfoDeviceCapability { - readonly attribute boolean bluetooth; - - readonly attribute boolean nfc; - - readonly attribute boolean nfcReservedPush ; - - readonly attribute unsigned short multiTouchCount; - - readonly attribute boolean inputKeyboard; - - readonly attribute boolean inputKeyboardLayout; - - readonly attribute boolean wifi; - - readonly attribute boolean wifiDirect; - - readonly attribute boolean opengles; - - readonly attribute DOMString openglestextureFormat; - - readonly attribute boolean openglesVersion1_1; - - readonly attribute boolean openglesVersion2_0; - - readonly attribute boolean fmRadio; - - readonly attribute DOMString platformVersion raises(WebAPIException); - - readonly attribute DOMString webApiVersion raises(WebAPIException); - - readonly attribute DOMString nativeApiVersion raises(WebAPIException); - - readonly attribute DOMString platformName; - - readonly attribute boolean camera; - - readonly attribute boolean cameraFront; - - readonly attribute boolean cameraFrontFlash; - - readonly attribute boolean cameraBack; - - readonly attribute boolean cameraBackFlash; - - readonly attribute boolean location; - - readonly attribute boolean locationGps; - - readonly attribute boolean locationWps; - - readonly attribute boolean microphone; - - readonly attribute boolean usbHost; - - readonly attribute boolean usbAccessory; - - readonly attribute boolean screenOutputRca; - - readonly attribute boolean screenOutputHdmi; - - readonly attribute DOMString platformCoreCpuArch; - - readonly attribute DOMString platformCoreFpuArch; - - readonly attribute boolean sipVoip; - - readonly attribute DOMString duid; - - readonly attribute boolean speechRecognition; - - readonly attribute boolean speechSynthesis; - - readonly attribute boolean accelerometer; - - readonly attribute boolean accelerometerWakeup; - - readonly attribute boolean barometer; - - readonly attribute boolean barometerWakeup; - - readonly attribute boolean gyroscope; - - readonly attribute boolean gyroscopeWakeup; - - readonly attribute boolean magnetometer; - - readonly attribute boolean magnetometerWakeup; - - readonly attribute boolean photometer; - - readonly attribute boolean photometerWakeup; - - readonly attribute boolean proximity; - - readonly attribute boolean proximityWakeup; - - readonly attribute boolean tiltmeter; - - readonly attribute boolean tiltmeterWakeup; - - readonly attribute boolean dataEncryption; - - readonly attribute boolean graphicsAcceleration; - - readonly attribute boolean push; - - readonly attribute boolean telephony; - - readonly attribute boolean telephonyMms; - - readonly attribute boolean telephonySms; - - readonly attribute boolean screenSizeNormal; - - readonly attribute boolean screenSize480_800; - - readonly attribute boolean screenSize720_1280; - - readonly attribute boolean autoRotation; - - readonly attribute boolean shellAppWidget; - - readonly attribute boolean visionImageRecognition; - - readonly attribute boolean visionQrcodeGeneration; - - readonly attribute boolean visionQrcodeRecognition; - - readonly attribute boolean visionFaceRecognition; - - readonly attribute boolean secureElement; - - readonly attribute boolean nativeOspCompatible; - - readonly attribute SystemInfoProfile profile; - }; - dictionary SystemInfoOptions { unsigned long timeout; @@ -3866,7 +3719,6 @@ To guarantee the running of the application on a device which supports network p readonly attribute boolean isRemovable; - readonly attribute boolean isRemoveable; }; [NoInterfaceObject] interface SystemInfoDisplay : SystemInfoProperty { -- 2.7.4