Udostępnij za pośrednictwem


BluetoothHealth.DisconnectChannel Method

Definition

Disconnect a connected health channel.

[Android.Runtime.Register("disconnectChannel", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothHealthAppConfiguration;I)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool DisconnectChannel (Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.BluetoothHealthAppConfiguration? config, int channelId);
[<Android.Runtime.Register("disconnectChannel", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/BluetoothHealthAppConfiguration;I)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.DisconnectChannel : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.BluetoothHealthAppConfiguration * int -> bool

Parameters

device
BluetoothDevice

The remote Bluetooth device.

config
BluetoothHealthAppConfiguration

The application configuration which has been registered using #registerSinkAppConfiguration(String, int, BluetoothHealthCallback)

channelId
Int32

The channel id associated with the channel

Returns

If true, the callback associated with the application config will be called.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothHealth.disconnectChannel(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothHealthAppConfiguration, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to