BluetoothGattServer.SendResponse メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| SendResponse(BluetoothDevice, Int32, GattStatus, Int32, Byte[]) | |
| SendResponse(BluetoothDevice, Int32, ProfileState, Int32, Byte[]) |
リモート デバイスに読み取りまたは書き込み要求に応答を送信します。 |
SendResponse(BluetoothDevice, Int32, GattStatus, Int32, Byte[])
public bool SendResponse(Android.Bluetooth.BluetoothDevice device, int requestId, Android.Bluetooth.GattStatus status, int offset, byte[] value);
member this.SendResponse : Android.Bluetooth.BluetoothDevice * int * Android.Bluetooth.GattStatus * int * byte[] -> bool
パラメーター
- device
- BluetoothDevice
- requestId
- Int32
- status
- GattStatus
- offset
- Int32
- value
- Byte[]
返品
注釈
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SendResponse(BluetoothDevice, Int32, ProfileState, Int32, Byte[])
リモート デバイスに読み取りまたは書き込み要求に応答を送信します。
[Android.Runtime.Register("sendResponse", "(Landroid/bluetooth/BluetoothDevice;III[B)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool SendResponse(Android.Bluetooth.BluetoothDevice device, int requestId, Android.Bluetooth.ProfileState status, int offset, byte[]? value);
[<Android.Runtime.Register("sendResponse", "(Landroid/bluetooth/BluetoothDevice;III[B)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SendResponse : Android.Bluetooth.BluetoothDevice * int * Android.Bluetooth.ProfileState * int * byte[] -> bool
パラメーター
- device
- BluetoothDevice
この応答を送信するリモート デバイス
- requestId
- Int32
コールバックで受信された要求の ID
- status
- ProfileState
リモート デバイスに送信される要求の状態
- offset
- Int32
部分的な読み取り/書き込み応答の値オフセット
- value
- Byte[]
読み取り/書き込まれた属性の値 (省略可能)
返品
- 属性
注釈
リモート デバイスに読み取りまたは書き込み要求に応答を送信します。
リモートの読み取り/書き込み要求が次のいずれかのコールバック メソッドによって受信されたときに、この関数を呼び出す必要があります。
<ul><li>BluetoothGattServerCallback#onCharacteristicReadRequest<li>BluetoothGattServerCallback#onCharacteristicWriteRequest<li>BluetoothGattServerCallback#onDescriptorReadRequest<li>BluetoothGattServerCallback#onDescriptorWriteRequest</ul>
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。