Compartir a través de


BluetoothDevice.CreateBond Method

Definition

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

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.

Applies to