語言

BluetoothHidDevice.UnregisterApp 方法

定義

取消註冊應用程式。

[Android.Runtime.Register("unregisterApp", "()Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool UnregisterApp();
[<Android.Runtime.Register("unregisterApp", "()Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.UnregisterApp : unit -> bool

傳回

如果指令成功傳送,則為真;否則為假。

屬性

備註

取消註冊應用程式。 活躍連線將被解除連接,且在重新使用 。#registerApp (BluetoothHidDeviceAppQosSettings, BluetoothHidDeviceAppQosSettings, BluetoothHidDeviceAppQosSettings, Executor, Callback) 應用程式應透過處理來自 Callback#onAppStatusChanged 的回撥來追蹤註冊狀態。 應用程式註冊狀態與此方法的回傳價值無關。

Java 文件 android.bluetooth.BluetoothHidDevice.unregisterApp()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於