BluetoothGattServer.GetService(UUID) Método

Definición

Devuelve una BluetoothGattService de la lista de servicios ofrecidos por este dispositivo.

[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

Parámetros

uuid
UUID

UUID del servicio solicitado

Devoluciones

BluetoothGattService si se admite o null si este dispositivo no ofrece el servicio solicitado.

Atributos

Comentarios

Devuelve una BluetoothGattService de la lista de servicios ofrecidos por este dispositivo.

Si existen varias instancias del mismo servicio (identificadas por UUID), se devuelve la primera instancia del servicio.

Java documentación para android.bluetooth.BluetoothGattServer.getService(java.util.UUID).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a