Share via


BluetoothGatt.GetService(UUID) Method

Definition

Returns a BluetoothGattService, if the requested UUID is supported by the remote device.

[Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")]
public Android.Bluetooth.BluetoothGattService? GetService (Java.Util.UUID? uuid);
[<Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")>]
member this.GetService : Java.Util.UUID -> Android.Bluetooth.BluetoothGattService

Parameters

uuid
UUID

UUID of the requested service

Returns

BluetoothGattService if supported, or null if the requested service is not offered by the remote device.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGatt.getService(java.util.UUID).

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