BluetoothHidDevice.Callback.OnAppStatusChanged 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當申請註冊狀態改變時,會呼叫回撥。
[Android.Runtime.Register("onAppStatusChanged", "(Landroid/bluetooth/BluetoothDevice;Z)V", "GetOnAppStatusChanged_Landroid_bluetooth_BluetoothDevice_ZHandler", ApiSince=28)]
public virtual void OnAppStatusChanged(Android.Bluetooth.BluetoothDevice? pluggedDevice, bool registered);
[<Android.Runtime.Register("onAppStatusChanged", "(Landroid/bluetooth/BluetoothDevice;Z)V", "GetOnAppStatusChanged_Landroid_bluetooth_BluetoothDevice_ZHandler", ApiSince=28)>]
abstract member OnAppStatusChanged : Android.Bluetooth.BluetoothDevice * bool -> unit
override this.OnAppStatusChanged : Android.Bluetooth.BluetoothDevice * bool -> unit
參數
- pluggedDevice
- BluetoothDevice
BluetoothDevice 物件代表目前已與裝置建立虛擬纜線的主機。 只有當應用程式註冊時才有效,可以是 null。
- registered
- Boolean
true 若申請已註冊, false 否則。
- 屬性
備註
當申請註冊狀態改變時,會呼叫回撥。 通常因為其中一種 BluetoothHidDevice#registerApp (String, String, String, byte, byte[], Executor, Callback)BluetoothHidDevice#unregisterApp() 或 ,但也可能因為藍牙關閉而非請求,應用程式會自動取消註冊。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。