java.lang.Object | |
↳ | android.bluetooth.le.AdvertiseData |
Advertise data packet container for Bluetooth LE advertising. This represents the data to be advertised as well as the scan response data for active scans.
Use AdvertiseData.Builder
to create an instance of AdvertiseData
to be
advertised.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AdvertiseData.Builder |
Builder for AdvertiseData .
|
[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 device name will be included in the advertisement packet.
| |||||||||||
Whether the transmission power level will be included in the advertisement packet.
| |||||||||||
Returns an array of manufacturer Id and the corresponding manufacturer specific data.
| |||||||||||
Returns a map of 16-bit UUID and its corresponding service data.
| |||||||||||
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 device name will be included in the advertisement packet.
Whether the transmission power level will be included in the advertisement packet.
Returns an array of manufacturer Id and the corresponding manufacturer specific data. The manufacturer id is a non-negative number assigned by Bluetooth SIG.
Returns a map of 16-bit UUID and its corresponding service data.
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 .
|