BluetoothGatt.SetCharacteristicNotification 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 특성에 대한 알림/표시를 사용하거나 사용하지 않도록 설정합니다.
[Android.Runtime.Register("setCharacteristicNotification", "(Landroid/bluetooth/BluetoothGattCharacteristic;Z)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool SetCharacteristicNotification(Android.Bluetooth.BluetoothGattCharacteristic? characteristic, bool enable);
[<Android.Runtime.Register("setCharacteristicNotification", "(Landroid/bluetooth/BluetoothGattCharacteristic;Z)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SetCharacteristicNotification : Android.Bluetooth.BluetoothGattCharacteristic * bool -> bool
매개 변수
- characteristic
- BluetoothGattCharacteristic
알림을 사용하도록 설정할 특성
- enable
- Boolean
알림/표시를 사용하도록 설정하려면 true로 설정
반품
요청된 알림 상태가 성공적으로 설정된 경우 true입니다.
- 특성
설명
지정된 특성에 대한 알림/표시를 사용하거나 사용하지 않도록 설정합니다.
특성 BluetoothGattCallback#onCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, byte[]) 에 대한 알림이 활성화되면 원격 디바이스가 지정된 특성이 변경되었음을 나타내는 경우 콜백이 트리거됩니다.
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.