Language

BluetoothGattService.GetCharacteristic(UUID) メソッド

定義

このサービスによって提供される特性の一覧から、特定の UUID を持つ特性を返します。

[Android.Runtime.Register("getCharacteristic", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattCharacteristic;", "GetGetCharacteristic_Ljava_util_UUID_Handler")]
public virtual Android.Bluetooth.BluetoothGattCharacteristic? GetCharacteristic(Java.Util.UUID? uuid);
[<Android.Runtime.Register("getCharacteristic", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattCharacteristic;", "GetGetCharacteristic_Ljava_util_UUID_Handler")>]
abstract member GetCharacteristic : Java.Util.UUID -> Android.Bluetooth.BluetoothGattCharacteristic
override this.GetCharacteristic : Java.Util.UUID -> Android.Bluetooth.BluetoothGattCharacteristic

パラメーター

uuid
UUID

返品

GATT 特性オブジェクト。指定された UUID の特性が見つからなかった場合は null。

属性

注釈

このサービスによって提供される特性の一覧から、特定の UUID を持つ特性を返します。

これは、手動で #getCharacteristics 返されたリストを列挙せずに、特定の特性にアクセスできるようにする便利な関数です。

リモート サービスが同じ UUID を持つ複数の特性を提供する場合は、指定された UUID を持つ特性の最初のインスタンスが返されます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象