java.lang.Object | |
↳ | android.bluetooth.le.AdvertiseCallback |
Callback of Bluetooth LE advertising, which is used to deliver advertising operation status.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ADVERTISE_FAILED_ALREADY_STARTED | Fails to start advertising as the advertising is already started. | |||||||||
int | ADVERTISE_FAILED_CONTROLLER_FAILURE | Operation fails due to bluetooth controller failure. | |||||||||
int | ADVERTISE_FAILED_NOT_STARTED | Fails to stop advertising as the advertising is not started. | |||||||||
int | ADVERTISE_FAILED_SERVICE_UNKNOWN | Fails to start advertising as the advertisement data contains services that are not added to the local bluetooth GATT server. | |||||||||
int | ADVERTISE_FAILED_TOO_MANY_ADVERTISERS | Fails to start advertising as system runs out of quota for advertisers. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback when advertising operation fails.
| |||||||||||
Callback when advertising operation succeeds.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Fails to start advertising as the advertising is already started.
Operation fails due to bluetooth controller failure.
Fails to stop advertising as the advertising is not started.
Fails to start advertising as the advertisement data contains services that are not added to the local bluetooth GATT server.
Fails to start advertising as system runs out of quota for advertisers.
Callback when advertising operation fails.
errorCode | Error code for failures. |
---|
Callback when advertising operation succeeds.
settingsInEffect | The actual settings used for advertising, which may be different from what the app asks. |
---|