<td><span style="font-family: Courier New,Courier,monospace">MEMORY</span></td>
<td>Provides information about the memory state of the device.</td>
</tr>
+ <tr>
+ <td><span style="font-family: Courier New,Courier,monospace">SystemInfoADS</span> (in <a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/systeminfo.html#SystemInfoADS">mobile</a>, <a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/systeminfo.html#SystemInfoADS">wearable</a>, and <a href="../../../../org.tizen.web.apireference/html/device_api/tv/tizen/systeminfo.html#SystemInfoADS">TV</a> applications)</td>
+ <td><span style="font-family: Courier New,Courier,monospace">ADS</span></td>
+ <td>Provides information about the advertisement service.</td>
+ </tr>
</tbody>
</table>
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<li>
STORAGE </li>
<li>
-NET_PROXY_NETWORK (<b>Since</b>: 3.0) </li>
+NET_PROXY_NETWORK (<b>Since</b>: 3.0) </li>
<li>
WIFI_NETWORK </li>
+ <li>
+ADS (<b>Since</b>: 3.0) </li>
</ul>
<p>
Not all above properties may be available on every Tizen device. For instance, a device may not support the telephony feature. In that case, <var>CELLULAR_NETWORK</var> and <var>SIM</var> are not available.<br><br>To check the available <var>SystemInfoPropertyId</var>, <em>tizen.systeminfo.getCapability()</em> can be used.
<li>
SIM - tizen.systeminfo.getCapability(<em>"http://tizen.org/feature/network.telephony"</em>) </li>
<li>
-NET_PROXY_NETWORK - tizen.systeminfo.getCapability(<em>"http://tizen.org/feature/network.net_proxy"
-</em>) </li>
-<li>
+ NET_PROXY_NETWORK - tizen.systeminfo.getCapability(<em>"http://tizen.org/feature/network.net_proxy"</em>) </li>
+ <li>
WIFI_NETWORK - tizen.systeminfo.getCapability(<em>"http://tizen.org/feature/network.wifi"</em>) </li>
</ul>
<p>
<h2>Table of Contents</h2>
<ul class="toc">
<li>1. <a href="#typedefs-section">Type Definitions</a><ul class="toc">
-<li>1.1. <a href="#SystemInfoPropertyId">SystemInfoPropertyId</a>
+<li>
+ 1.1. <a href="#SystemInfoPropertyId">SystemInfoPropertyId</a>
</li>
-<li>1.2. <a href="#SystemInfoNetworkType">SystemInfoNetworkType</a>
+<li>
+ 1.2. <a href="#SystemInfoNetworkType">SystemInfoNetworkType</a>
</li>
-<li>1.3. <a href="#SystemInfoDeviceOrientationStatus">SystemInfoDeviceOrientationStatus</a>
+<li>
+ 1.3. <a href="#SystemInfoDeviceOrientationStatus">SystemInfoDeviceOrientationStatus</a>
</li>
-<li>1.4. <a href="#SystemInfoSimState">SystemInfoSimState</a>
+<li>
+ 1.4. <a href="#SystemInfoSimState">SystemInfoSimState</a>
</li>
-<li>1.5. <a href="#SystemInfoProfile">SystemInfoProfile</a>
+<li class="deprecated">
+ 1.5. <a href="#SystemInfoProfile">SystemInfoProfile</a>
</li>
-<li>1.6. <a href="#SystemInfoLowMemoryStatus">SystemInfoLowMemoryStatus</a>
+<li>
+ 1.6. <a href="#SystemInfoLowMemoryStatus">SystemInfoLowMemoryStatus</a>
</li>
</ul>
</li>
</li>
<li>2.2. <a href="#SystemInfo">SystemInfo</a>
</li>
-<li>2.3. <a href="#SystemInfoDeviceCapability">SystemInfoDeviceCapability</a>
+<li class="deprecated">2.3. <a href="#SystemInfoDeviceCapability">SystemInfoDeviceCapability</a>
</li>
<li>2.4. <a href="#SystemInfoOptions">SystemInfoOptions</a>
</li>
</li>
<li>2.24. <a href="#SystemInfoCameraFlash">SystemInfoCameraFlash</a>
</li>
+<li>2.25. <a href="#SystemInfoADS">SystemInfoADS</a>
+</li>
</ul>
</li>
<li>3. <a href="#api-features">Related Feature</a>
</tr>
<tr>
<td><a href="#SystemInfo">SystemInfo</a></td>
-<td>long long <a href="#SystemInfo::getTotalMemory">getTotalMemory</a> ()<br>
- long long <a href="#SystemInfo::getAvailableMemory">getAvailableMemory</a> ()<br>
- <a href="#SystemInfoDeviceCapability">SystemInfoDeviceCapability</a> <a href="#SystemInfo::getCapabilities">getCapabilities</a> ()<br>
- any <a href="#SystemInfo::getCapability">getCapability</a> (DOMString key)<br>
- long <a href="#SystemInfo::getCount">getCount</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property)<br>
- void <a href="#SystemInfo::getPropertyValue">getPropertyValue</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#SystemInfo::getPropertyValueArray">getPropertyValueArray</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- unsigned long <a href="#SystemInfo::addPropertyValueChangeListener">addPropertyValueChangeListener</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback, optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- unsigned long <a href="#SystemInfo::addPropertyValueArrayChangeListener">addPropertyValueArrayChangeListener</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback, optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#SystemInfo::removePropertyValueChangeListener">removePropertyValueChangeListener</a> (unsigned long listenerId)</td>
+<td>
+<div>long long <a href="#SystemInfo::getTotalMemory">getTotalMemory</a> ()</div>
+<div>long long <a href="#SystemInfo::getAvailableMemory">getAvailableMemory</a> ()</div>
+<div class="deprecated">
+<a href="#SystemInfoDeviceCapability">SystemInfoDeviceCapability</a> <a href="#SystemInfo::getCapabilities">getCapabilities</a> ()</div>
+<div>any <a href="#SystemInfo::getCapability">getCapability</a> (DOMString key)</div>
+<div>long <a href="#SystemInfo::getCount">getCount</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property)</div>
+<div>void <a href="#SystemInfo::getPropertyValue">getPropertyValue</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#SystemInfo::getPropertyValueArray">getPropertyValueArray</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>unsigned long <a href="#SystemInfo::addPropertyValueChangeListener">addPropertyValueChangeListener</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback, optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>unsigned long <a href="#SystemInfo::addPropertyValueArrayChangeListener">addPropertyValueArrayChangeListener</a> (<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property, <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback, optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#SystemInfo::removePropertyValueChangeListener">removePropertyValueChangeListener</a> (unsigned long listenerId)</div>
+</td>
</tr>
<tr>
-<td><a href="#SystemInfoDeviceCapability">SystemInfoDeviceCapability</a></td>
+<td class="deprecated"><a href="#SystemInfoDeviceCapability">SystemInfoDeviceCapability</a></td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td><a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a></td>
-<td>void <a href="#SystemInfoPropertySuccessCallback::onsuccess">onsuccess</a> (<a href="#SystemInfoProperty">SystemInfoProperty</a> property)</td>
+<td><div>void <a href="#SystemInfoPropertySuccessCallback::onsuccess">onsuccess</a> (<a href="#SystemInfoProperty">SystemInfoProperty</a> property)</div></td>
</tr>
<tr>
<td><a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a></td>
-<td>void <a href="#SystemInfoPropertyArraySuccessCallback::onsuccess">onsuccess</a> (<a href="#SystemInfoProperty">SystemInfoProperty</a>[] properties)</td>
+<td><div>void <a href="#SystemInfoPropertyArraySuccessCallback::onsuccess">onsuccess</a> (<a href="#SystemInfoProperty">SystemInfoProperty</a>[] properties)</div></td>
</tr>
<tr>
<td><a href="#SystemInfoProperty">SystemInfoProperty</a></td>
<td></td>
</tr>
<tr>
-<td><a href="#SystemInfoSIM">SystemInfoSIM</a></td>
+<td><a href="#SystemInfoNetProxyNetwork">SystemInfoNetProxyNetwork</a></td>
<td></td>
</tr>
<tr>
-<td><a href="#SystemInfoNetProxyNetwork">SystemInfoNetProxyNetwork</a></td>
+<td><a href="#SystemInfoSIM">SystemInfoSIM</a></td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td><a href="#SystemInfoCameraFlash">SystemInfoCameraFlash</a></td>
-<td>void <a href="#SystemInfoCameraFlash::setBrightness">setBrightness</a> (double brightness)</td>
+<td><div>void <a href="#SystemInfoCameraFlash::setBrightness">setBrightness</a> (double brightness)</div></td>
+</tr>
+<tr>
+<td><a href="#SystemInfoADS">SystemInfoADS</a></td>
+<td></td>
</tr>
</tbody>
</table>
<div class="brief">
The device property identifier.
</div>
-<pre class="webidl prettyprint"> enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" };</pre>
+<pre class="webidl prettyprint"> enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK",
+ "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH", "ADS" };</pre>
<p><span class="version">
Since: </span>
2.0
<em>MEMORY</em> is supported since Tizen 2.3
</p>
<p><span class="remark"> Remark : </span>
- <em>NET_PROXY_NETWORK</em> is supported since Tizen 3.0
-</p>
+ <em>NET_PROXY_NETWORK</em> is supported since Tizen 3.0
+ </p>
+<p><span class="remark"> Remark : </span>
+ <em>ADS</em> is supported since Tizen 3.0
+ </p>
</div>
<div class="enum" id="SystemInfoNetworkType">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoNetworkType"></a><h3>1.2. SystemInfoNetworkType</h3>
<p><span class="version">
Since: </span>
2.0
-</p>
+ </p>
<p><span class="remark"> Remark : </span>
-<em>NET_PROXY</em> is supported since Tizen 3.0
-</p>
+ <em>NET_PROXY</em> is supported since Tizen 3.0
+ </p>
</div>
<div class="enum" id="SystemInfoDeviceOrientationStatus">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoDeviceOrientationStatus"></a><h3>1.3. SystemInfoDeviceOrientationStatus</h3>
2.1
</p>
</div>
-<div class="enum" id="SystemInfoProfile">
+<div class="enum deprecated" id="SystemInfoProfile">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoProfile"></a><h3>1.5. SystemInfoProfile</h3>
<div class="brief">
Device Profile.
long getCount(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void getPropertyValue(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValue(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void getPropertyValueArray(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValueArray(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueArrayChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueArrayChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void removePropertyValueChangeListener(unsigned long listenerId) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void removePropertyValueChangeListener(unsigned long listenerId) raises(WebAPIException);
};</pre>
<div class="description">
<p>
</pre>
</div>
</dd>
-<dt class="method" id="SystemInfo::getCapabilities">
+<dt class="deprecated method" id="SystemInfo::getCapabilities">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfo::getCapabilities"></a><code><b><span class="methodName">getCapabilities</span></b></code>
</dt>
-<dd>
+<dd class="deprecated">
<div class="brief">
Gets the capabilities of the device.
</div>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">key</span>:
+<span class="name">key</span>:
The device capability key for the device or additional custom device capability key specifies by OEM's
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the system property
</li>
</ul>
NotSupportedError - If the given <var>property</var> is not supported. (since Tizen 2.3) </li>
</ul>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
+<div class="description">
+ </div>
<p><span class="remark"> Remark : </span>
If the given <var>property</var> is not supported, <em>NotSupportedError</em> would be passed through a <em>ErrorCallback()</em> since Tizen 2.3.
</p>
<p><span class="remark"> Remark : </span>
If system provides more than one value for the system property, the primary(first) system property is returned through SystemInfoSuccessCallback.
</p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 2.4.
- </p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 2.4.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred while retrieving the properties.
</li>
</ul>
NotSupportedError - If the given <var>property</var> is not supported. </li>
</ul>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
+<div class="description">
+ </div>
<p><span class="remark"> Remark : </span>
see getCount().
</p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 2.4.
- </p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 2.4.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Callback method that is invoked when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Callback method that is invoked when an error occurs while retrieving the properties.
</li>
</ul>
</li>
</ul>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
+<div class="description">
+ </div>
<p><span class="remark"> Remark : </span>
The <em>errorCallback()</em> is newly added as an optional parameter since Tizen 2.3.
</p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 2.4.
- </p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 2.4.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
An object containing the various options for fetching the properties requested. See <a href="./systeminfo.html#::SystemInfo::SystemInfoOptions">details</a>.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred.
</li>
</ul>
any identifier of these properties, but the listener added for them will not be invoked.
</p>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 2.4.
- </p>
+<div class="description">
+ </div>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 2.4.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
An object containing the various options for fetching the properties requested.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">listenerId</span>:
+<span class="name">listenerId</span>:
An identifier of the subscription returned by the addPropertyValueChangeListener()/addPropertyValueArrayChangeListener() method.
</li>
</ul>
</dl>
</div>
</div>
-<div class="interface" id="SystemInfoDeviceCapability">
+<div class="interface deprecated" id="SystemInfoDeviceCapability">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoDeviceCapability"></a><h3>2.3. SystemInfoDeviceCapability</h3>
<div class="brief">
SystemInfoDeviceCapability object.
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The property returned from a successful asynchronous operation.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">properties</span>:
+<span class="name">properties</span>:
The array of SystemInfoProperty objects returned from a successful asynchronous operation.
</li>
</ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoCpu::load">
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoStorage::units">
readonly attribute boolean isRemoveable;
};</pre>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
2.1
</p>
</li>
-<li class="attribute" id="SystemInfoStorageUnit::isRemoveable">
+<li class="attribute deprecated" id="SystemInfoStorageUnit::isRemoveable">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">boolean </span><span class="name">isRemoveable</span></span><div class="brief">
true if this unit can be removed from the system (such as an sdcard unplugged), false otherwise.
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.1
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoNetwork::networkType">
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.4
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
<div class="interface" id="SystemInfoNetProxyNetwork">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoNetProxyNetwork"></a><h3>2.20. SystemInfoNetProxyNetwork</h3>
<div class="brief">
-This property reflects the information of the net_proxy network in this system.
-</div>
-<pre class="webidl prettyprint"> [NoInterfaceObject] interface SystemInfoNetProxyNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
-readonly attribute DOMString status;
-};</pre>
+ This property reflects the information of the net_proxy network in this system.
+ </div>
+<pre class="webidl prettyprint"> [NoInterfaceObject] interface SystemInfoNetProxyNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ readonly attribute DOMString status;
+ };</pre>
<p><span class="version">
-Since: </span>
-3.0
-</p>
-<div class="attributes">
+ Since: </span>
+ 3.0
+ </p>
+
+ <div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoNetProxyNetwork::status">
-<span class="attrName"><span class="readonly"> readonly
+<span class="attrName"><span class="readonly"> readonly
</span><span class="type">DOMString </span><span class="name">status</span></span><div class="brief">
-Represents the status (ON or OFF) of the net_proxy network.
-</div>
+ Represents the status (ON or OFF) of the net_proxy network.
+ </div>
<p><span class="version">
-Since: </span>
-3.0
-</p>
+ Since: </span>
+ 3.0
+ </p>
</li></ul>
</div>
</div>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.1
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoPeripheral::isVideoOutputOn">
Since: </span>
2.3
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoMemory::status">
void setBrightness(double brightness) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
};</pre>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">brightness</span>:
+<span class="name">brightness</span>:
The brightness value of LED (0~1)
</li>
</ul>
</dl>
</div>
</div>
+<div class="interface" id="SystemInfoADS">
+<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoADS"></a><h3>2.25. SystemInfoADS</h3>
+<div class="brief">
+ This property represents information about advertisement service - ADS.
+ </div>
+<pre class="webidl prettyprint"> [NoInterfaceObject] interface SystemInfoADS : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ readonly attribute DOMString id;
+ };</pre>
+<p><span class="version">
+ Since: </span>
+ 3.0
+ </p>
+
+ <div class="attributes">
+<h4>Attributes</h4>
+<ul><li class="attribute" id="SystemInfoADS::id">
+<span class="attrName"><span class="readonly"> readonly
+</span><span class="type">DOMString </span><span class="name">id</span></span><div class="brief">
+ Represents the unique id of advertisement service. It is used to distinguish each device.
+ </div>
+<p><span class="version">
+ Since: </span>
+ 3.0
+ </p>
+</li></ul>
+</div>
+</div>
</div>
<h2 id="api-features">3. Related Feature</h2>
<div id="def-api-features" class="def-api-features">
</div>
<div class="def-api-feature">
<p><div class="description">
-<p>
+ <p>
To guarantee the running of the application on a device which supports network proxy for internet connection, declare the following feature requirements in the config file:
-</p>
-</div></p>
+ </p>
+ </div></p>
<li class="feature">http://tizen.org/feature/network.net_proxy</li>
</div>
<p></p>
<h2 id="full-webidl">4. Full WebIDL</h2>
<pre class="webidl prettyprint">module SystemInfo {
- enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" };
+ enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK",
+ "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH", "ADS" };
enum SystemInfoNetworkType { "NONE", "2G", "2.5G", "3G", "4G", "WIFI", "ETHERNET", "NET_PROXY", "UNKNOWN" };
long getCount(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void getPropertyValue(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValue(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void getPropertyValueArray(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValueArray(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueArrayChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueArrayChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void removePropertyValueChangeListener(unsigned long listenerId) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void removePropertyValueChangeListener(unsigned long listenerId) raises(WebAPIException);
};
[NoInterfaceObject] interface SystemInfoDeviceCapability {
readonly attribute boolean fmRadio;
- readonly attribute DOMString platformVersion raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString platformVersion raises(WebAPIException);
- readonly attribute DOMString webApiVersion raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString webApiVersion raises(WebAPIException);
- readonly attribute DOMString nativeApiVersion raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString nativeApiVersion raises(WebAPIException);
readonly attribute DOMString platformName;
readonly attribute boolean nativeOspCompatible;
- readonly attribute <a href="#SystemInfoProfile">SystemInfoProfile</a> profile;
+ readonly attribute SystemInfoProfile profile;
};
dictionary SystemInfoOptions {
};
[Callback=FunctionOnly, NoInterfaceObject] interface SystemInfoPropertySuccessCallback {
- void onsuccess(<a href="#SystemInfoProperty">SystemInfoProperty</a> property);
+ void onsuccess(SystemInfoProperty property);
};
[Callback=FunctionOnly, NoInterfaceObject] interface SystemInfoPropertyArraySuccessCallback {
- void onsuccess(<a href="#SystemInfoProperty">SystemInfoProperty</a>[] properties);
+ void onsuccess(SystemInfoProperty[] properties);
};
[NoInterfaceObject] interface SystemInfoProperty {
};
- [NoInterfaceObject] interface SystemInfoBattery : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoBattery : SystemInfoProperty {
readonly attribute double level;
readonly attribute boolean isCharging;
};
- [NoInterfaceObject] interface SystemInfoCpu : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoCpu : SystemInfoProperty {
readonly attribute double load;
};
- [NoInterfaceObject] interface SystemInfoStorage : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoStorageUnit">SystemInfoStorageUnit</a>[] units;
+ [NoInterfaceObject] interface SystemInfoStorage : SystemInfoProperty {
+ readonly attribute SystemInfoStorageUnit[] units;
};
- [NoInterfaceObject] interface SystemInfoStorageUnit : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoStorageUnit : SystemInfoProperty {
readonly attribute DOMString type;
readonly attribute unsigned long long capacity;
readonly attribute boolean isRemoveable;
};
- [NoInterfaceObject] interface SystemInfoDisplay : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoDisplay : SystemInfoProperty {
readonly attribute unsigned long resolutionWidth;
readonly attribute unsigned long resolutionHeight;
readonly attribute double brightness;
};
- [NoInterfaceObject] interface SystemInfoDeviceOrientation : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoDeviceOrientationStatus">SystemInfoDeviceOrientationStatus</a> status;
+ [NoInterfaceObject] interface SystemInfoDeviceOrientation : SystemInfoProperty {
+ readonly attribute SystemInfoDeviceOrientationStatus status;
readonly attribute boolean isAutoRotation;
};
- [NoInterfaceObject] interface SystemInfoBuild : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoBuild : SystemInfoProperty {
readonly attribute DOMString model;
readonly attribute DOMString manufacturer;
readonly attribute DOMString buildVersion;
};
- [NoInterfaceObject] interface SystemInfoLocale : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoLocale : SystemInfoProperty {
readonly attribute DOMString language;
readonly attribute DOMString country;
};
- [NoInterfaceObject] interface SystemInfoNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoNetworkType">SystemInfoNetworkType</a> networkType;
+ [NoInterfaceObject] interface SystemInfoNetwork : SystemInfoProperty {
+ readonly attribute SystemInfoNetworkType networkType;
};
- [NoInterfaceObject] interface SystemInfoWifiNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoWifiNetwork : SystemInfoProperty {
readonly attribute DOMString status;
readonly attribute DOMString ssid;
readonly attribute double signalStrength;
};
- [NoInterfaceObject] interface SystemInfoEthernetNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoEthernetNetwork : SystemInfoProperty {
readonly attribute DOMString cable;
readonly attribute DOMString status;
readonly attribute DOMString macAddress;
};
- [NoInterfaceObject] interface SystemInfoCellularNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoCellularNetwork : SystemInfoProperty {
readonly attribute DOMString status;
readonly attribute boolean isFlightMode;
- readonly attribute DOMString imei raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString imei raises(WebAPIException);
};
- [NoInterfaceObject] interface SystemInfoNetProxyNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoNetProxyNetwork : SystemInfoProperty {
readonly attribute DOMString status;
};
- [NoInterfaceObject] interface SystemInfoSIM : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoSimState">SystemInfoSimState</a> state raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ [NoInterfaceObject] interface SystemInfoSIM : SystemInfoProperty {
+ readonly attribute SystemInfoSimState state raises(WebAPIException);
- readonly attribute DOMString operatorName raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString operatorName raises(WebAPIException);
- readonly attribute DOMString msisdn raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString msisdn raises(WebAPIException);
- readonly attribute DOMString iccid raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString iccid raises(WebAPIException);
- readonly attribute unsigned short mcc raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute unsigned short mcc raises(WebAPIException);
- readonly attribute unsigned short mnc raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute unsigned short mnc raises(WebAPIException);
- readonly attribute DOMString msin raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString msin raises(WebAPIException);
- readonly attribute DOMString spn raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString spn raises(WebAPIException);
};
- [NoInterfaceObject] interface SystemInfoPeripheral : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoPeripheral : SystemInfoProperty {
readonly attribute boolean isVideoOutputOn;
};
- [NoInterfaceObject] interface SystemInfoMemory : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoLowMemoryStatus">SystemInfoLowMemoryStatus</a> status;
+ [NoInterfaceObject] interface SystemInfoMemory : SystemInfoProperty {
+ readonly attribute SystemInfoLowMemoryStatus status;
};
- [NoInterfaceObject] interface SystemInfoCameraFlash : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute double brightness raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ [NoInterfaceObject] interface SystemInfoCameraFlash : SystemInfoProperty {
+ readonly attribute double brightness raises(WebAPIException);
readonly attribute DOMString camera;
- readonly attribute long levels raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute long levels raises(WebAPIException);
- void setBrightness(double brightness) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void setBrightness(double brightness) raises(WebAPIException);
};
+ [NoInterfaceObject] interface SystemInfoADS : SystemInfoProperty {
+ readonly attribute DOMString id;
+ };
};</pre>
</div>
<div id="page-footer">
</li>
<li>2.26. <a href="#SystemInfoCameraFlash">SystemInfoCameraFlash</a>
</li>
+<li>2.27. <a href="#SystemInfoADS">SystemInfoADS</a>
+</li>
</ul>
</li>
<li>3. <a href="#api-features">Related Feature</a>
<td><a href="#SystemInfoCameraFlash">SystemInfoCameraFlash</a></td>
<td><div>void <a href="#SystemInfoCameraFlash::setBrightness">setBrightness</a> (double brightness)</div></td>
</tr>
+<tr>
+<td><a href="#SystemInfoADS">SystemInfoADS</a></td>
+<td></td>
+</tr>
</tbody>
</table>
<div class="typedefs" id="typedefs-section">
<div class="brief">
The device property identifier.
</div>
-<pre class="webidl prettyprint"> enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "VIDEOSOURCE", "CAMERA_FLASH" };</pre>
+<pre class="webidl prettyprint"> enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK",
+ "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "VIDEOSOURCE", "CAMERA_FLASH", "ADS" };</pre>
<p><span class="version">
Since: </span>
2.0
<p><span class="remark"> Remark : </span>
<em>VIDEOSOURCE</em> is supported since Tizen 2.3
</p>
+<p><span class="remark"> Remark : </span>
+ <em>ADS</em> is supported since Tizen 3.0
+ </p>
</div>
<div class="enum" id="SystemInfoNetworkType">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoNetworkType"></a><h3>1.2. SystemInfoNetworkType</h3>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">key</span>:
+<span class="name">key</span>:
The device capability key for the device or additional custom device capability key specifies by OEM's
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the system property
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
<ul>
<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
(public level)</b> is needed since Tizen 2.4.</ul>
</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred while retrieving the properties.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
<ul>
<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
(public level)</b> is needed since Tizen 2.4.</ul>
</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Callback method that is invoked when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Callback method that is invoked when an error occurs while retrieving the properties.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
<ul>
<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
(public level)</b> is needed since Tizen 2.4.</ul>
</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
An object containing the various options for fetching the properties requested. See <a href="./systeminfo.html#::SystemInfo::SystemInfoOptions">details</a>.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
<ul>
<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
(public level)</b> is needed since Tizen 2.4.</ul>
</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
An object containing the various options for fetching the properties requested.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">listenerId</span>:
+<span class="name">listenerId</span>:
An identifier of the subscription returned by the addPropertyValueChangeListener()/addPropertyValueArrayChangeListener() method.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The property returned from a successful asynchronous operation.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">properties</span>:
+<span class="name">properties</span>:
The array of SystemInfoProperty objects returned from a successful asynchronous operation.
</li>
</ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoCpu::load">
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoStorage::units">
readonly attribute boolean isRemoveable;
};</pre>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.1
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoNetwork::networkType">
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.4
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
3.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoNetProxyNetwork::status">
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.1
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoPeripheral::isVideoOutputOn">
Since: </span>
2.3
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoMemory::status">
Since: </span>
2.3
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
void setBrightness(double brightness) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
};</pre>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">brightness</span>:
+<span class="name">brightness</span>:
The brightness value of LED (0~1)
</li>
</ul>
</dl>
</div>
</div>
+<div class="interface" id="SystemInfoADS">
+<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoADS"></a><h3>2.27. SystemInfoADS</h3>
+<div class="brief">
+ This property represents information about advertisement service - ADS.
+ </div>
+<pre class="webidl prettyprint"> [NoInterfaceObject] interface SystemInfoADS : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ readonly attribute DOMString id;
+ };</pre>
+<p><span class="version">
+ Since: </span>
+ 3.0
+ </p>
+
+ <div class="attributes">
+<h4>Attributes</h4>
+<ul><li class="attribute" id="SystemInfoADS::id">
+<span class="attrName"><span class="readonly"> readonly
+</span><span class="type">DOMString </span><span class="name">id</span></span><div class="brief">
+ Represents the unique id of advertisement service. It is used to distinguish each device.
+ </div>
+<p><span class="version">
+ Since: </span>
+ 3.0
+ </p>
+</li></ul>
+</div>
+</div>
</div>
<h2 id="api-features">3. Related Feature</h2>
<div id="def-api-features" class="def-api-features">
<h2 id="full-webidl">4. Full WebIDL</h2>
<pre class="webidl prettyprint">module SystemInfo {
- enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "VIDEOSOURCE", "CAMERA_FLASH" };
+ enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK",
+ "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "VIDEOSOURCE", "CAMERA_FLASH", "ADS" };
enum SystemInfoNetworkType { "NONE", "2G", "2.5G", "3G", "4G", "WIFI", "ETHERNET", "NET_PROXY", "UNKNOWN" };
void setBrightness(double brightness) raises(WebAPIException);
};
+ [NoInterfaceObject] interface SystemInfoADS : SystemInfoProperty {
+ readonly attribute DOMString id;
+ };
};</pre>
</div>
<div id="page-footer">
NET_PROXY_NETWORK (<b>Since</b>: 3.0) </li>
<li>
WIFI_NETWORK </li>
+ <li>
+ADS (<b>Since</b>: 3.0) </li>
</ul>
<p>
Not all above properties may be available on every Tizen device. For instance, a device may not support the telephony feature. In that case, <var>CELLULAR_NETWORK</var> and <var>SIM</var> are not available.<br><br>To check the available <var>SystemInfoPropertyId</var>, <em>tizen.systeminfo.getCapability()</em> can be used.
</li>
<li>2.24. <a href="#SystemInfoCameraFlash">SystemInfoCameraFlash</a>
</li>
+<li>2.25. <a href="#SystemInfoADS">SystemInfoADS</a>
+</li>
</ul>
</li>
<li>3. <a href="#api-features">Related Feature</a>
<td><a href="#SystemInfoCameraFlash">SystemInfoCameraFlash</a></td>
<td><div>void <a href="#SystemInfoCameraFlash::setBrightness">setBrightness</a> (double brightness)</div></td>
</tr>
+<tr>
+<td><a href="#SystemInfoADS">SystemInfoADS</a></td>
+<td></td>
+</tr>
</tbody>
</table>
<div class="typedefs" id="typedefs-section">
<div class="brief">
The device property identifier.
</div>
-<pre class="webidl prettyprint"> enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" };</pre>
+<pre class="webidl prettyprint"> enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK",
+ "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH", "ADS" };</pre>
<p><span class="version">
Since: </span>
2.0
<p><span class="remark"> Remark : </span>
<em>NET_PROXY_NETWORK</em> is supported since Tizen 3.0
</p>
+<p><span class="remark"> Remark : </span>
+ <em>ADS</em> is supported since Tizen 3.0
+ </p>
</div>
<div class="enum" id="SystemInfoNetworkType">
<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoNetworkType"></a><h3>1.2. SystemInfoNetworkType</h3>
long getCount(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void getPropertyValue(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValue(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void getPropertyValueArray(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValueArray(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueArrayChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueArrayChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void removePropertyValueChangeListener(unsigned long listenerId) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void removePropertyValueChangeListener(unsigned long listenerId) raises(WebAPIException);
};</pre>
<div class="description">
<p>
Gets the capabilities of the device.
</div>
<p class="deprecated"><b>Deprecated.</b>
- Deprecated since 2.3. Instead, use getCapability().
+ Deprecated since 2.3. Instead, use getCapability().
</p>
<div class="synopsis"><pre class="signature prettyprint"><a href="#SystemInfoDeviceCapability">SystemInfoDeviceCapability</a> getCapabilities();
</pre></div>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">key</span>:
+<span class="name">key</span>:
The device capability key for the device or additional custom device capability key specifies by OEM's
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the system property
</li>
</ul>
NotSupportedError - If the given <var>property</var> is not supported. (since Tizen 2.3) </li>
</ul>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
+<div class="description">
+ </div>
<p><span class="remark"> Remark : </span>
If the given <var>property</var> is not supported, <em>NotSupportedError</em> would be passed through a <em>ErrorCallback()</em> since Tizen 2.3.
</p>
<p><span class="remark"> Remark : </span>
If system provides more than one value for the system property, the primary(first) system property is returned through SystemInfoSuccessCallback.
</p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 3.0.
- </p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 3.0.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred while retrieving the properties.
</li>
</ul>
NotSupportedError - If the given <var>property</var> is not supported. </li>
</ul>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
+<div class="description">
+ </div>
<p><span class="remark"> Remark : </span>
see getCount().
</p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 3.0.
- </p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 3.0.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Callback method that is invoked when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Callback method that is invoked when an error occurs while retrieving the properties.
</li>
</ul>
</li>
</ul>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
+<div class="description">
+ </div>
<p><span class="remark"> Remark : </span>
The <em>errorCallback()</em> is newly added as an optional parameter since Tizen 2.3.
</p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 3.0.
- </p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 3.0.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
An object containing the various options for fetching the properties requested. See <a href="./systeminfo.html#::SystemInfo::SystemInfoOptions">details</a>.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred.
</li>
</ul>
any identifier of these properties, but the listener added for them will not be invoked.
</p>
</div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- public
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/telephony
- </p>
-<p><span class="remark"> Remark : </span>
- <b>http://tizen.org/privilege/telephony</b> has been required only for <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> property since Tizen 3.0.
- </p>
+<div class="description">
+ </div>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The name of the property to retrieve.
- </li>
+ <ul>
+<b>Conditional privilege: </b>For using <a href="#SystemInfoPropertyId">CELLULAR_NETWORK</a> value, privilege <b>
+ http://tizen.org/privilege/telephony
+ (public level)</b> is needed since Tizen 3.0.</ul>
+</li>
<li class="param">
-<span class="name">successCallback</span>:
+<span class="name">successCallback</span>:
Function called when the properties have been successfully retrieved.
</li>
<li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
An object containing the various options for fetching the properties requested.
</li>
<li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
Function called when an error occurred.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">listenerId</span>:
+<span class="name">listenerId</span>:
An identifier of the subscription returned by the addPropertyValueChangeListener()/addPropertyValueArrayChangeListener() method.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">property</span>:
+<span class="name">property</span>:
The property returned from a successful asynchronous operation.
</li>
</ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">properties</span>:
+<span class="name">properties</span>:
The array of SystemInfoProperty objects returned from a successful asynchronous operation.
</li>
</ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoCpu::load">
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoStorage::units">
readonly attribute boolean isRemoveable;
};</pre>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.1
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoNetwork::networkType">
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
3.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
1.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
3.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoNetProxyNetwork::status">
Since: </span>
2.0
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.1
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoPeripheral::isVideoOutputOn">
Since: </span>
2.3
</p>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul><li class="attribute" id="SystemInfoMemory::status">
void setBrightness(double brightness) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
};</pre>
-
+
<div class="attributes">
<h4>Attributes</h4>
<ul>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">brightness</span>:
+<span class="name">brightness</span>:
The brightness value of LED (0~1)
</li>
</ul>
</dl>
</div>
</div>
+<div class="interface" id="SystemInfoADS">
+<a class="backward-compatibility-anchor" name="::SystemInfo::SystemInfoADS"></a><h3>2.25. SystemInfoADS</h3>
+<div class="brief">
+ This property represents information about advertisement service - ADS.
+ </div>
+<pre class="webidl prettyprint"> [NoInterfaceObject] interface SystemInfoADS : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ readonly attribute DOMString id;
+ };</pre>
+<p><span class="version">
+ Since: </span>
+ 3.0
+ </p>
+
+ <div class="attributes">
+<h4>Attributes</h4>
+<ul><li class="attribute" id="SystemInfoADS::id">
+<span class="attrName"><span class="readonly"> readonly
+</span><span class="type">DOMString </span><span class="name">id</span></span><div class="brief">
+ Represents the unique id of advertisement service. It is used to distinguish each device.
+ </div>
+<p><span class="version">
+ Since: </span>
+ 3.0
+ </p>
+</li></ul>
+</div>
+</div>
</div>
<h2 id="api-features">3. Related Feature</h2>
<div id="def-api-features" class="def-api-features">
<h2 id="full-webidl">4. Full WebIDL</h2>
<pre class="webidl prettyprint">module SystemInfo {
- enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK", "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH" };
+ enum SystemInfoPropertyId { "BATTERY", "CPU", "STORAGE", "DISPLAY", "DEVICE_ORIENTATION", "BUILD", "LOCALE", "NETWORK", "WIFI_NETWORK",
+ "ETHERNET_NETWORK", "CELLULAR_NETWORK", "NET_PROXY_NETWORK", "SIM", "PERIPHERAL", "MEMORY", "CAMERA_FLASH", "ADS" };
enum SystemInfoNetworkType { "NONE", "2G", "2.5G", "3G", "4G", "WIFI", "ETHERNET", "NET_PROXY", "UNKNOWN" };
long getCount(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void getPropertyValue(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValue(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void getPropertyValueArray(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void getPropertyValueArray(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertySuccessCallback">SystemInfoPropertySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- unsigned long addPropertyValueArrayChangeListener(<a href="#SystemInfoPropertyId">SystemInfoPropertyId</a> property,
- <a href="#SystemInfoPropertyArraySuccessCallback">SystemInfoPropertyArraySuccessCallback</a> successCallback,
- optional <a href="#SystemInfoOptions">SystemInfoOptions</a>? options,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ unsigned long addPropertyValueArrayChangeListener(SystemInfoPropertyId property,
+ SystemInfoPropertyArraySuccessCallback successCallback,
+ optional SystemInfoOptions? options,
+ optional ErrorCallback? errorCallback) raises(WebAPIException);
- void removePropertyValueChangeListener(unsigned long listenerId) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void removePropertyValueChangeListener(unsigned long listenerId) raises(WebAPIException);
};
[NoInterfaceObject] interface SystemInfoDeviceCapability {
readonly attribute boolean fmRadio;
- readonly attribute DOMString platformVersion raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString platformVersion raises(WebAPIException);
- readonly attribute DOMString webApiVersion raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString webApiVersion raises(WebAPIException);
- readonly attribute DOMString nativeApiVersion raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString nativeApiVersion raises(WebAPIException);
readonly attribute DOMString platformName;
readonly attribute boolean nativeOspCompatible;
- readonly attribute <a href="#SystemInfoProfile">SystemInfoProfile</a> profile;
+ readonly attribute SystemInfoProfile profile;
};
dictionary SystemInfoOptions {
};
[Callback=FunctionOnly, NoInterfaceObject] interface SystemInfoPropertySuccessCallback {
- void onsuccess(<a href="#SystemInfoProperty">SystemInfoProperty</a> property);
+ void onsuccess(SystemInfoProperty property);
};
[Callback=FunctionOnly, NoInterfaceObject] interface SystemInfoPropertyArraySuccessCallback {
- void onsuccess(<a href="#SystemInfoProperty">SystemInfoProperty</a>[] properties);
+ void onsuccess(SystemInfoProperty[] properties);
};
[NoInterfaceObject] interface SystemInfoProperty {
};
- [NoInterfaceObject] interface SystemInfoBattery : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoBattery : SystemInfoProperty {
readonly attribute double level;
readonly attribute boolean isCharging;
};
- [NoInterfaceObject] interface SystemInfoCpu : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoCpu : SystemInfoProperty {
readonly attribute double load;
};
- [NoInterfaceObject] interface SystemInfoStorage : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoStorageUnit">SystemInfoStorageUnit</a>[] units;
+ [NoInterfaceObject] interface SystemInfoStorage : SystemInfoProperty {
+ readonly attribute SystemInfoStorageUnit[] units;
};
- [NoInterfaceObject] interface SystemInfoStorageUnit : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoStorageUnit : SystemInfoProperty {
readonly attribute DOMString type;
readonly attribute unsigned long long capacity;
readonly attribute boolean isRemoveable;
};
- [NoInterfaceObject] interface SystemInfoDisplay : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoDisplay : SystemInfoProperty {
readonly attribute unsigned long resolutionWidth;
readonly attribute unsigned long resolutionHeight;
readonly attribute double brightness;
};
- [NoInterfaceObject] interface SystemInfoDeviceOrientation : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoDeviceOrientationStatus">SystemInfoDeviceOrientationStatus</a> status;
+ [NoInterfaceObject] interface SystemInfoDeviceOrientation : SystemInfoProperty {
+ readonly attribute SystemInfoDeviceOrientationStatus status;
readonly attribute boolean isAutoRotation;
};
- [NoInterfaceObject] interface SystemInfoBuild : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoBuild : SystemInfoProperty {
readonly attribute DOMString model;
readonly attribute DOMString manufacturer;
readonly attribute DOMString buildVersion;
};
- [NoInterfaceObject] interface SystemInfoLocale : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoLocale : SystemInfoProperty {
readonly attribute DOMString language;
readonly attribute DOMString country;
};
- [NoInterfaceObject] interface SystemInfoNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoNetworkType">SystemInfoNetworkType</a> networkType;
+ [NoInterfaceObject] interface SystemInfoNetwork : SystemInfoProperty {
+ readonly attribute SystemInfoNetworkType networkType;
};
- [NoInterfaceObject] interface SystemInfoWifiNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoWifiNetwork : SystemInfoProperty {
readonly attribute DOMString status;
readonly attribute DOMString ssid;
readonly attribute double signalStrength;
};
- [NoInterfaceObject] interface SystemInfoEthernetNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoEthernetNetwork : SystemInfoProperty {
readonly attribute DOMString cable;
readonly attribute DOMString status;
readonly attribute DOMString macAddress;
};
- [NoInterfaceObject] interface SystemInfoCellularNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoCellularNetwork : SystemInfoProperty {
readonly attribute DOMString status;
readonly attribute boolean isFlightMode;
- readonly attribute DOMString imei raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString imei raises(WebAPIException);
};
- [NoInterfaceObject] interface SystemInfoNetProxyNetwork : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoNetProxyNetwork : SystemInfoProperty {
readonly attribute DOMString status;
};
- [NoInterfaceObject] interface SystemInfoSIM : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoSimState">SystemInfoSimState</a> state raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ [NoInterfaceObject] interface SystemInfoSIM : SystemInfoProperty {
+ readonly attribute SystemInfoSimState state raises(WebAPIException);
- readonly attribute DOMString operatorName raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString operatorName raises(WebAPIException);
- readonly attribute DOMString msisdn raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString msisdn raises(WebAPIException);
- readonly attribute DOMString iccid raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString iccid raises(WebAPIException);
- readonly attribute unsigned short mcc raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute unsigned short mcc raises(WebAPIException);
- readonly attribute unsigned short mnc raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute unsigned short mnc raises(WebAPIException);
- readonly attribute DOMString msin raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString msin raises(WebAPIException);
- readonly attribute DOMString spn raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute DOMString spn raises(WebAPIException);
};
- [NoInterfaceObject] interface SystemInfoPeripheral : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
+ [NoInterfaceObject] interface SystemInfoPeripheral : SystemInfoProperty {
readonly attribute boolean isVideoOutputOn;
};
- [NoInterfaceObject] interface SystemInfoMemory : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute <a href="#SystemInfoLowMemoryStatus">SystemInfoLowMemoryStatus</a> status;
+ [NoInterfaceObject] interface SystemInfoMemory : SystemInfoProperty {
+ readonly attribute SystemInfoLowMemoryStatus status;
};
- [NoInterfaceObject] interface SystemInfoCameraFlash : <a href="#SystemInfoProperty">SystemInfoProperty</a> {
- readonly attribute double brightness raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ [NoInterfaceObject] interface SystemInfoCameraFlash : SystemInfoProperty {
+ readonly attribute double brightness raises(WebAPIException);
readonly attribute DOMString camera;
- readonly attribute long levels raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ readonly attribute long levels raises(WebAPIException);
- void setBrightness(double brightness) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ void setBrightness(double brightness) raises(WebAPIException);
};
+ [NoInterfaceObject] interface SystemInfoADS : SystemInfoProperty {
+ readonly attribute DOMString id;
+ };
};</pre>
</div>
<div id="page-footer">