java.lang.Object | |
↳ | android.bluetooth.le.AdvertiseCallback |
Bluetooth LE advertising callbacks, used to deliver advertising operation status.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ADVERTISE_FAILED_ALREADY_STARTED | Failed to start advertising as the advertising is already started. | |||||||||
int | ADVERTISE_FAILED_DATA_TOO_LARGE | Failed to start advertising as the advertise data to be broadcasted is larger than 31 bytes. | |||||||||
int | ADVERTISE_FAILED_FEATURE_UNSUPPORTED | This feature is not supported on this platform. | |||||||||
int | ADVERTISE_FAILED_INTERNAL_ERROR | Operation failed due to an internal error. | |||||||||
int | ADVERTISE_FAILED_TOO_MANY_ADVERTISERS | Failed to start advertising because no advertising instance is available. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback when advertising could not be started.
| |||||||||||
Callback triggered in response to
startAdvertising(AdvertiseSettings, AdvertiseData, AdvertiseCallback) indicating
that the advertising has been started successfully.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Failed to start advertising as the advertising is already started.
Failed to start advertising as the advertise data to be broadcasted is larger than 31 bytes.
This feature is not supported on this platform.
Operation failed due to an internal error.
Failed to start advertising because no advertising instance is available.
Callback when advertising could not be started.
errorCode | Error code (see ADVERTISE_FAILED_* constants) for advertising start failures. |
---|
Callback triggered in response to startAdvertising(AdvertiseSettings, AdvertiseData, AdvertiseCallback)
indicating
that the advertising has been started successfully.
settingsInEffect | The actual settings used for advertising, which may be different from what has been requested. |
---|