<td><a href="#BluetoothAdapter">BluetoothAdapter</a></td>
<td>void <a href="#BluetoothAdapter::setName">setName</a> (DOMString name, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
void <a href="#BluetoothAdapter::setPowered">setPowered</a> (boolean state, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::setVisible">setVisible</a> (boolean mode, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional unsigned short? timeout)<br>
void <a href="#BluetoothAdapter::setChangeListener">setChangeListener</a> (<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener)<br>
void <a href="#BluetoothAdapter::unsetChangeListener">unsetChangeListener</a> ()<br>
void <a href="#BluetoothAdapter::discoverDevices">discoverDevices</a> (<a href="#BluetoothDiscoverDevicesSuccessCallback">BluetoothDiscoverDevicesSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="returntype">
<p><span class="return">Return value:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
</p>
<p><span class="remark"> Remark : </span>
To check if this method is supported or not, use <a href="systeminfo.html#SystemInfo::getCapability">tizen.systeminfo.getCapability</a>("http://tizen.org/feature/network.bluetooth.le").
</p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
+ </p>
<div class="returntype">
<p><span class="return">Return value:</span></p>
BluetoothLEAdapter The local <em>BluetoothLEAdapter </em>object.
optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void setVisible(boolean mode,
- optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback,
- optional unsigned short? timeout) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void setChangeListener(<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
void unsetChangeListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<p><span class="remark"> Remark : </span>
To check if this method is supported or not, use <var>tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on")</var> </p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<p><span class="remark"> Remark : </span>
To check if this method is supported or not, use <a href="systeminfo.html#SystemInfo::getCapability">this.systeminfo.getCapability</a>(
</pre>
</div>
</dd>
-<dt class="method" id="BluetoothAdapter::setVisible">
-<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothAdapter::setVisible"></a><code><b><span class="methodName">setVisible</span></b></code>
-</dt>
-<dd>
-<div class="brief">
- Sets the local device visibility by sending a request to a Bluetooth hardware to change the device visible state to <em>mode</em>.
- </div>
-<div class="deprecated"><p><font color="red"><i><b>Deprecated.</b>
-It is deprecated since Tizen 2.3 and will be removed in Tizen 3.0. Instead, let the user change theBluetooth visibility through the Settings application. See the <a href="../../../../../org.tizen.tutorials/html/web/tizen/communication/bluetooth_tutorial_w.htm">Bluetooth</a> Tutorial.
- </i></font></p></div>
-<div class="synopsis"><pre class="signature prettyprint">void setVisible(boolean mode, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional unsigned short? timeout);
- </pre></div>
-<p><span class="version">
- Since: </span>
- 1.0
- </p>
-<div class="description">
- <p>
-If <em>mode</em> is <var>true</var>, then the device is visible to other devices, that is, it responds to inquiry calls from remote devices for time period defined (in seconds) by <em>timeout</em>. After the timeout, the device will become invisible.
- </p>
- <p>
-If <em>timeout</em> is not passed or an invalid parameter is passed, the <em>timeout </em>defaults to <var>180 </var>seconds (3 minutes). A <em>timeout</em> of <var>0</var> is considered unlimited.
- </p>
- <p>
-The ErrorCallback is launched with these error types:
- </p>
- <ul>
- <li>
- InvalidValuesError - If any of the input parameters contain an invalid value </li>
- <li>
- ServiceNotAvailableError - If a Bluetooth device is turned off </li>
- <li>
- NotSupportedError: If a device does not allow a Tizen Web application to change the visibility of the local device
-<br> because some devices must be always discoverable from the remote Bluetooth devices </li>
- <li>
- UnknownError - If any other error case occurs </li>
- </ul>
- </div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- platform
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/bluetoothmanager
- </p>
-<p><span class="remark"> Remark : </span>
- To check if this method is supported or not, use <var>tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on")</var> </p>
-<div class="parameters">
-<p><span class="param">Parameters:</span></p>
-<ul>
- <li class="param">
-<span class="name">mode</span>:
- The boolean value to set visibility
-It can either be set to: <var>true</var> - to show the device or <var>false</var> - to hide the device.
- </li>
- <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
- Callback function that is called when changing visibility completes successfully
- </li>
- <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
- Callback function that is called when an error occurs
- </li>
- <li class="param">
-<span class="name">timeout</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
- The visible timeout in seconds, used only when <em>mode</em> is <var>true</var> </li>
- </ul>
-</div>
-<div class="exceptionlist">
-<p><span class="except">Exceptions:</span></p>
- <ul class="exception"><li>WebAPIException<ul>
-<li class="list"><p>
- with error type TypeMismatchError, if any of the input parameter is not compatible with the expected type for that parameter.
- </p></li>
-<li class="list"><p>
- with error type SecurityError, if the application does not have the privilege to call this method.
- </p></li>
-</ul>
-</li></ul>
- </div>
-<div class="example">
-<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getDefaultAdapter();
-
- function showMe() {
- if (adapter.visible == false) {
- //Shows device
- adapter.setVisible(true,
- function() { console.log ('Device is visible to other devices for 3 minutes.'); },
- function(e) { console.log ('Error: ' + e.message + '(' + e.name + ')'); });
- } else {
- console.log("Device is already in discoverable mode.");
- }
- }
-
- function hideMe() {
- if (adapter.visible) {
- // Hides device
- adapter.setVisible(false,
- function() { console.log('Device is in-visible now.'); },
- function(e) { console.log ('Error: ' + e.message + '(' + e.name + ')'); });
- } else {
- console.log("Device is already in invisible mode.");
- }
- }
-
- var bt_always_on = tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on");
- if (bt_always_on === true) {
- console.log("Because Bluetooth must be always discoverable from the remote Bluetooth devices, this method does not work. NotSupportedError would be returned through ErrorCallback.");
- } else {
- powerOn();
- }
- </pre>
-</div>
-</dd>
<dt class="method" id="BluetoothAdapter::setChangeListener">
<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothAdapter::setChangeListener"></a><code><b><span class="methodName">setChangeListener</span></b></code>
</dt>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="returntype">
<p><span class="return">Return value:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void setVisible(boolean mode,
- optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback,
- optional unsigned short? timeout) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void setChangeListener(<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
void unsetChangeListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
<td><a href="#BluetoothAdapter">BluetoothAdapter</a></td>
<td>void <a href="#BluetoothAdapter::setName">setName</a> (DOMString name, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
void <a href="#BluetoothAdapter::setPowered">setPowered</a> (boolean state, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::setVisible">setVisible</a> (boolean mode, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional unsigned short? timeout)<br>
void <a href="#BluetoothAdapter::setChangeListener">setChangeListener</a> (<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener)<br>
void <a href="#BluetoothAdapter::unsetChangeListener">unsetChangeListener</a> ()<br>
void <a href="#BluetoothAdapter::discoverDevices">discoverDevices</a> (<a href="#BluetoothDiscoverDevicesSuccessCallback">BluetoothDiscoverDevicesSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="returntype">
<p><span class="return">Return value:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<p><span class="remark"> Remark : </span>
To check if this method is supported or not, use <a href="systeminfo.html#SystemInfo::getCapability">tizen.systeminfo.getCapability</a>("http://tizen.org/feature/network.bluetooth.le").
optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void setVisible(boolean mode,
- optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback,
- optional unsigned short? timeout) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void setChangeListener(<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
void unsetChangeListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<p><span class="remark"> Remark : </span>
To check if this method is supported or not, use <var>tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on")</var> </p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ </p>
+<p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<p><span class="remark"> Remark : </span>
To check if this method is supported or not, use <a href="systeminfo.html#SystemInfo::getCapability">this.systeminfo.getCapability</a>(
</pre>
</div>
</dd>
-<dt class="method" id="BluetoothAdapter::setVisible">
-<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothAdapter::setVisible"></a><code><b><span class="methodName">setVisible</span></b></code>
-</dt>
-<dd>
-<div class="brief">
- Sets the local device visibility by sending a request to a Bluetooth hardware to change the device visible state to <em>mode</em>.
- </div>
-<div class="deprecated"><p><font color="red"><i><b>Deprecated.</b>
- It is deprecated since Tizen 2.3 and will be removed in Tizen 3.0. Instead, let the user change the Bluetooth visibility through the Settings application. See the <a href="../../../../../org.tizen.tutorials/html/web/tizen/communication/bluetooth_tutorial_w.htm">Bluetooth</a> Tutorial.
- </i></font></p></div>
-<div class="synopsis"><pre class="signature prettyprint">void setVisible(boolean mode, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional unsigned short? timeout);
- </pre></div>
-<p><span class="version">
- Since: </span>
- 2.3.1
- </p>
-<div class="description">
- <p>
-If <em>mode</em> is <var>true</var>, then the device is visible to other devices, that is, it responds to inquiry calls from remote devices for time period defined (in seconds) by <em>timeout</em>. After the timeout, the device will become invisible.
- </p>
- <p>
-If <em>timeout</em> is not passed or an invalid parameter is passed, the <em>timeout </em>defaults to <var>180 </var>seconds (3 minutes). A <em>timeout</em> of <var>0</var> is considered unlimited.
- </p>
- <p>
-The ErrorCallback is launched with these error types:
- </p>
- <ul>
- <li>
- InvalidValuesError - If any of the input parameters contain an invalid value </li>
- <li>
- ServiceNotAvailableError - If a Bluetooth device is turned off </li>
- <li>
- NotSupportedError: If a device does not allow a Tizen Web application to change the visibility of the local device
-<br> because some devices must be always discoverable from the remote Bluetooth devices </li>
- <li>
- UnknownError - If any other error case occurs </li>
- </ul>
- </div>
-<p><span class="privilegelevel">
- Privilege level: </span>
- platform
- </p>
-<p><span class="privilege">
- Privilege: </span>
- http://tizen.org/privilege/bluetoothmanager
- </p>
-<p><span class="remark"> Remark : </span>
- To check if this method is supported or not, use <var>tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on")</var> </p>
-<div class="parameters">
-<p><span class="param">Parameters:</span></p>
-<ul>
- <li class="param">
-<span class="name">mode</span>:
- The boolean value to set visibility
-It can either be set to: <var>true</var> - to show the device or <var>false</var> - to hide the device.
- </li>
- <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
- Callback function that is called when changing visibility completes successfully
- </li>
- <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
- Callback function that is called when an error occurs
- </li>
- <li class="param">
-<span class="name">timeout</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
- The visible timeout in seconds, used only when <em>mode</em> is <var>true</var> </li>
- </ul>
-</div>
-<div class="exceptionlist">
-<p><span class="except">Exceptions:</span></p>
- <ul class="exception"><li>WebAPIException<ul>
-<li class="list"><p>
- with error type TypeMismatchError, if any of the input parameter is not compatible with the expected type for that parameter.
- </p></li>
-<li class="list"><p>
- with error type SecurityError, if the application does not have the privilege to call this method.
- </p></li>
-</ul>
-</li></ul>
- </div>
-<div class="example">
-<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getDefaultAdapter();
-
- function showMe() {
- if (adapter.visible == false) {
- //Shows device
- adapter.setVisible(true,
- function() { console.log ('Device is visible to other devices for 3 minutes.'); },
- function(e) { console.log ('Error: ' + e.message + '(' + e.name + ')'); });
- } else {
- console.log("Device is already in discoverable mode.");
- }
- }
-
- function hideMe() {
- if (adapter.visible) {
- // Hides device
- adapter.setVisible(false,
- function() { console.log('Device is in-visible now.'); },
- function(e) { console.log ('Error: ' + e.message + '(' + e.name + ')'); });
- } else {
- console.log("Device is already in invisible mode.");
- }
- }
-
- var bt_always_on = tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on");
- if (bt_always_on === true) {
- console.log("Because Bluetooth must be always discoverable from the remote Bluetooth devices, this method does not work. NotSupportedError would be returned through ErrorCallback.");
- } else {
- powerOn();
- }
- </pre>
-</div>
-</dd>
<dt class="method" id="BluetoothAdapter::setChangeListener">
<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothAdapter::setChangeListener"></a><code><b><span class="methodName">setChangeListener</span></b></code>
</dt>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ </p>
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.admin
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.admin -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="returntype">
<p><span class="return">Return value:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.gap
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.gap -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.spp
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.spp -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
</p>
<p><span class="privilege">
Privilege: </span>
- http://tizen.org/privilege/bluetooth.health
+ http://tizen.org/privilege/bluetooth
+ <p><span class="remark"> Remark : </span>
+ Since Tizen 2.4, the required privilege name is changed.
+(http://tizen.org/privilege/bluetooth.health -> http://tizen.org/privilege/bluetooth)
</p>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
- void setVisible(boolean mode,
- optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
- optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback,
- optional unsigned short? timeout) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
void setChangeListener(<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
void unsetChangeListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);