Share via


BluetoothGattServer.NotifyCharacteristicChanged Method

Definition

Overloads

NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean)

Send a notification or indication that a local characteristic has been updated.

NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean, Byte[])

NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean)

Send a notification or indication that a local characteristic has been updated.

[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

Parameters

device
BluetoothDevice

The remote device to receive the notification/indication

characteristic
BluetoothGattCharacteristic

The local characteristic that has been updated

confirm
Boolean

true to request confirmation from the client (indication), false to send a notification

Returns

true, if the notification has been triggered successfully

Attributes

Exceptions

Remarks

Java documentation for android.bluetooth.BluetoothGattServer.notifyCharacteristicChanged(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothGattCharacteristic, boolean).

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

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

Parameters

confirm
Boolean
value
Byte[]

Returns

Attributes

Applies to