Udostępnij za pośrednictwem


BluetoothGattServer.GetService(UUID) Method

Definition

Returns a BluetoothGattService from the list of services offered by this 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 this device.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattServer.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