语言

BluetoothGatt.RequestSubrateMode(Int32) 方法

定义

请求 LE 子速率模式。

[Android.Runtime.Register("requestSubrateMode", "(I)I", "", ApiSince=36)]
public int RequestSubrateMode(int subrateMode);
[<Android.Runtime.Register("requestSubrateMode", "(I)I", "", ApiSince=36)>]
member this.RequestSubrateMode : int -> int

参数

subrateMode
Int32

请求特定的子速率模式。

返回

如果请求发送到蓝牙堆栈,则为 true。

特性

注解

请求 LE 子速率模式。

此函数将向远程设备发送 LE 子速率请求。

此方法要求调用应用具有 android.Manifest.permission#BLUETOOTH_CONNECT 权限。 此外,应用必须具有 android.Manifest.permission#BLUETOOTH_PRIVILEGED 或与配套设备管理器相关联(请参阅 android.companion.CompanionDeviceManager#associate( AssociationRequest, android.companion.CompanionDeviceManager.Callback, Handler))

Java文档android.bluetooth.BluetoothGatt.requestSubrateMode(int)。

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

适用于