Udostępnij za pośrednictwem


BluetoothGatt.Connect Method

Definition

Connect back to remote device.

[Android.Runtime.Register("connect", "()Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool Connect ();
[<Android.Runtime.Register("connect", "()Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.Connect : unit -> bool

Returns

true, if the connection attempt was initiated successfully

Attributes

Remarks

Connect back to remote device.

This method is used to re-connect to a remote device after the connection has been dropped. If the device is not in range, the re-connection will be triggered once the device is back in range.

Java documentation for android.bluetooth.BluetoothGatt.connect().

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