BluetoothAdapter.SetName(String) Method

Definition

Set the friendly Bluetooth name of the local Bluetooth adapter.

[Android.Runtime.Register("setName", "(Ljava/lang/String;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool SetName (string? name);
[<Android.Runtime.Register("setName", "(Ljava/lang/String;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SetName : string -> bool

Parameters

name
String

a valid Bluetooth name

Returns

true if the name was set, false otherwise

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.setName(java.lang.String).

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