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
- 特性
注解
应用程序注册状态更改时调用的回调。 通常是由于任一原因 BluetoothHidDevice#registerApp (String, String, String, byte, byte[], Executor, Callback)BluetoothHidDevice#unregisterApp() 或原因而调用的,但也可能是未经请求的,例如,蓝牙已关闭,在这种情况下,应用程序会自动注销。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。