Sequenceablepublic class GattDescriptor extends Object implements Sequenceable
The GATT descriptor contains additional information and attributes of a GATT characteristic.
Sequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
GattDescriptor(UUID uuid,
int permissions) |
A constructor used to create a
GattDescriptor instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
GattCharacteristic |
getCharacteristic() |
Obtains the
GattCharacteristic to which a descriptor belongs. |
int |
getPermissions() |
Obtains the permissions of a descriptor in bit mask.
|
UUID |
getUuid() |
Obtains the UUID of a descriptor.
|
byte[] |
getValue() |
Sets the stored value of a descriptor.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
setValue(byte[] values) |
Sets the value for this descriptor.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic GattDescriptor(UUID uuid, int permissions)
GattDescriptor instance.uuid - Indicates the UUID of the descriptor.permissions - Indicates the permissions of the descriptor in bit mask.public GattCharacteristic getCharacteristic()
GattCharacteristic to which a descriptor belongs.GattCharacteristic to which the descriptor belongs.public UUID getUuid()
public int getPermissions()
public byte[] getValue()
true if the record is set successfully; returns false otherwise.public boolean setValue(byte[] values)
values - Indicates the value to set.true if the value is set; returns false otherwise.public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.