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 |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| Int | |
| Int | |
| Int | |
| Int | |
| Int | |
| Int | |
| Unit |
writeToParcel(out: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<BluetoothHidDeviceAppQosSettings!> | |
Constants
Public constructors
BluetoothHidDeviceAppQosSettings
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
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
writeToParcel
fun writeToParcel(
out: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| 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 the following:
|
Properties
CREATOR
static val CREATOR: Parcelable.Creator<BluetoothHidDeviceAppQosSettings!>