语言

BluetoothHidDevice.Callback.OnAppStatusChanged 方法

定义

应用程序注册状态更改时调用的回调。

[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

如果注册了应用程序,则为 &0;否则。

特性

注解

应用程序注册状态更改时调用的回调。 通常是由于任一原因 BluetoothHidDevice#registerApp (String, String, String, byte, byte[], Executor, Callback)BluetoothHidDevice#unregisterApp() 或原因而调用的,但也可能是未经请求的,例如,蓝牙已关闭,在这种情况下,应用程序会自动注销。

Java文档android.bluetooth.BluetoothHidDevice.Callback.onAppStatusChanged(android.bluetooth.BluetoothDevice, boolean)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于