java.lang.Object | |
↳ | android.bluetooth.le.AdvertisementData |
Advertisement data packet for Bluetooth LE advertising. This represents the data to be broadcasted in Bluetooth LE advertising as well as the scan response for active scan.
Use AdvertisementData.Builder
to create an instance of AdvertisementData
to be
advertised.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AdvertisementData.Builder | Builder for AdvertisementData . |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Whether the transmission power level will be included in the advertisement packet.
| |||||||||||
Returns the manufacturer identifier, which is a non-negative number assigned by Bluetooth
SIG.
| |||||||||||
Returns the manufacturer specific data which is the content of manufacturer specific data
field.
| |||||||||||
Returns service data.
| |||||||||||
Returns a 16 bit uuid of the service that the service data is associated with.
| |||||||||||
Returns a list of service uuids within the advertisement that are used to identify the
bluetooth GATT services.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Whether the transmission power level will be included in the advertisement packet.
Returns the manufacturer identifier, which is a non-negative number assigned by Bluetooth SIG.
Returns the manufacturer specific data which is the content of manufacturer specific data field. The first 2 bytes of the data contain the company id.
Returns service data. The first two bytes should be a 16 bit service uuid associated with the service data.
Returns a 16 bit uuid of the service that the service data is associated with.
Returns a list of service uuids within the advertisement that are used to identify the bluetooth GATT services.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|