Freigeben über


BluetoothDevice.Name Property

Definition

Get the friendly Bluetooth name of the remote device.

public string? Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "")] [Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")] get; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "")>]
[<get: Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.Name : string

Property Value

the Bluetooth name, or null if there was a problem.

Attributes

Remarks

Get the friendly Bluetooth name of the remote device.

The local adapter will automatically retrieve remote names when performing a device scan, and will cache them. This method just returns the name for this device from the cache.

Java documentation for android.bluetooth.BluetoothDevice.getName().

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