Android.Bluetooth.BluetoothGatt.SetCharacteristicNotification Method
Enable or disable notifications/indications for a given characteristic.

Syntax

[Android.Runtime.Register("setCharacteristicNotification", "(Landroid/bluetooth/BluetoothGattCharacteristic;Z)Z", "")]
public bool SetCharacteristicNotification (BluetoothGattCharacteristic characteristic, bool enable)

Parameters

characteristic
The characteristic for which to enable notifications
enable
Set to true to enable notifications/indications

Returns

Documentation for this section has not yet been entered.

Remarks

Enable or disable notifications/indications for a given characteristic.

Once notifications are enabled for a characteristic, a BluetoothGattCallback.OnCharacteristicChanged(BluetoothGatt, Android.Bluetooth.BluetoothGattCharacteristic) callback will be triggered if the remote device indicates that the given characteristic has changed.

Requires NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH permission.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18