BluetoothDevice.CreateBond Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Start the bonding (pairing) process with the remote device.
[Android.Runtime.Register("createBond", "()Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool CreateBond ();
[<Android.Runtime.Register("createBond", "()Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.CreateBond : unit -> bool
Returns
false on immediate error, true if bonding will begin
- Attributes
Remarks
Start the bonding (pairing) process with the remote device.
This is an asynchronous call, it will return immediately. Register for #ACTION_BOND_STATE_CHANGED
intents to be notified when the bonding process completes, and its result.
Android system services will handle the necessary user interactions to confirm and complete the bonding process.
Java documentation for android.bluetooth.BluetoothDevice.createBond()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.