Partager via


BluetoothDevice.GetUuids Method

Definition

Returns the supported features (UUIDs) of the remote device.

[Android.Runtime.Register("getUuids", "()[Landroid/os/ParcelUuid;", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.OS.ParcelUuid[]? GetUuids ();
[<Android.Runtime.Register("getUuids", "()[Landroid/os/ParcelUuid;", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetUuids : unit -> Android.OS.ParcelUuid[]

Returns

the supported features (UUIDs) of the remote device, or null on error

Attributes

Remarks

Returns the supported features (UUIDs) of the remote device.

This method does not start a service discovery procedure to retrieve the UUIDs from the remote device. Instead, the local cached copy of the service UUIDs are returned.

Use #fetchUuidsWithSdp if fresh UUIDs are desired.

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

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