Added in API level 28
BluetoothHidDeviceAppQosSettings
class BluetoothHidDeviceAppQosSettings : Parcelable
| kotlin.Any | |
| ↳ | android.bluetooth.BluetoothHidDeviceAppQosSettings |
Represents the Quality of Service (QoS) settings for a Bluetooth HID Device application.
The BluetoothHidDevice framework will update the L2CAP QoS settings for the app during registration.
Summary
| Constants | |
|---|---|
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
BluetoothHidDeviceAppQosSettings(serviceType: Int, tokenRate: Int, tokenBucketSize: Int, peakBandwidth: Int, latency: Int, delayVariation: Int)Create a BluetoothHidDeviceAppQosSettings object for the Bluetooth L2CAP channel. |
|
| Public methods | |
|---|---|
| Int | |
| Int | |
| Int | |
| Int | |
| Int | |
| Int | |
| Int | |
| Unit |
writeToParcel(out: Parcel, flags: Int) |
| Properties | |
|---|---|
| static Parcelable.Creator<BluetoothHidDeviceAppQosSettings!> | |
Constants
Public constructors
BluetoothHidDeviceAppQosSettings
Added in API level 28
BluetoothHidDeviceAppQosSettings(
serviceType: Int,
tokenRate: Int,
tokenBucketSize: Int,
peakBandwidth: Int,
latency: Int,
delayVariation: Int)
Create a BluetoothHidDeviceAppQosSettings object for the Bluetooth L2CAP channel. The QoS Settings is optional. Please refer to Bluetooth HID Specification v1.1.1 Section 5.2 and Appendix D for parameters.
| Parameters | |
|---|---|
serviceType |
Int: L2CAP service type, default = SERVICE_BEST_EFFORT |
tokenRate |
Int: L2CAP token rate, default = 0 |
tokenBucketSize |
Int: L2CAP token bucket size, default = 0 |
peakBandwidth |
Int: L2CAP peak bandwidth, default = 0 |
latency |
Int: L2CAP latency, default = MAX |
delayVariation |
Int: L2CAP delay variation, default = MAX |
Public methods
describeContents
Added in API level 28
fun describeContents(): Int
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
writeToParcel
Added in API level 28
fun writeToParcel(
out: Parcel,
flags: Int
): Unit
| Parameters | |
|---|---|
dest |
The Parcel in which the object should be written. This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
Added in API level 28
static val CREATOR: Parcelable.Creator<BluetoothHidDeviceAppQosSettings!>