BluetoothDevice.SetPin(Byte[]) Method

Definition

Set the pin during pairing when the pairing method is #PAIRING_VARIANT_PIN

[Android.Runtime.Register("setPin", "([B)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool SetPin (byte[]? pin);
[<Android.Runtime.Register("setPin", "([B)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SetPin : byte[] -> bool

Parameters

pin
Byte[]

Returns

true pin has been set false for error

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothDevice.setPin(byte[]).

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