BluetoothGattServer.NotifyCharacteristicChanged メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean) |
ローカル特性が更新されたことを示す通知または通知を送信します。 |
| NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean, Byte[]) |
ローカル特性が更新されたことを示す通知または通知を送信します。 |
NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean)
ローカル特性が更新されたことを示す通知または通知を送信します。
[Android.Runtime.Register("notifyCharacteristicChanged", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothGattCharacteristic;Z)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool NotifyCharacteristicChanged(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.BluetoothGattCharacteristic? characteristic, bool confirm);
[<Android.Runtime.Register("notifyCharacteristicChanged", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothGattCharacteristic;Z)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.NotifyCharacteristicChanged : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.BluetoothGattCharacteristic * bool -> bool
パラメーター
- device
- BluetoothDevice
通知/表示を受信するリモート デバイス
- characteristic
- BluetoothGattCharacteristic
更新されたローカル特性
- confirm
- Boolean
クライアントに確認を要求する場合は true (表示)、通知を送信する場合は false
返品
通知が正常にトリガーされた場合は true
- 属性
例外
注釈
ローカル特性が更新されたことを示す通知または通知を送信します。
リモート デバイスに通知または通知が送信され、特性が更新されたことを通知します。 この関数は、特定の特性の "クライアント構成" 記述子に書き込んで通知/表示を要求するすべてのクライアントに対して呼び出す必要があります。
このメンバーは非推奨です。 メモリ セーフではないため、 BluetoothGattServer#notifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, boolean, byte[]) を使用します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean, Byte[])
ローカル特性が更新されたことを示す通知または通知を送信します。
[Android.Runtime.Register("notifyCharacteristicChanged", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothGattCharacteristic;Z[B)I", "", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public int NotifyCharacteristicChanged(Android.Bluetooth.BluetoothDevice device, Android.Bluetooth.BluetoothGattCharacteristic characteristic, bool confirm, byte[] value);
[<Android.Runtime.Register("notifyCharacteristicChanged", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothGattCharacteristic;Z[B)I", "", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.NotifyCharacteristicChanged : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.BluetoothGattCharacteristic * bool * byte[] -> int
パラメーター
- device
- BluetoothDevice
通知/表示を受信するリモート デバイス
- characteristic
- BluetoothGattCharacteristic
更新されたローカル特性
- confirm
- Boolean
true 通知を送信するクライアント (表示) または false に確認を要求する場合
- value
- Byte[]
特性値
返品
通知が正常にトリガーされたかどうか
- 属性
注釈
ローカル特性が更新されたことを示す通知または通知を送信します。
リモート デバイスに通知または通知が送信され、特性が更新されたことを通知します。 この関数は、特定の特性の "クライアント構成" 記述子に書き込んで通知/表示を要求するすべてのクライアントに対して呼び出す必要があります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。