public class Advertisement extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Advertisement.BeaconLayout
Beacon layout enum
|
static class |
Advertisement.Builder
Builder class for
Advertisement. |
| Modifier and Type | Method and Description |
|---|---|
void |
startAdvertising(Context context)
Begins broadcasting beacon advertisement.
|
void |
stopAdvertising()
Stops advertising as a beacon
|
public void startAdvertising(Context context)
context - Application context in which to start the advertisement. Required for access to
the bluetooth interface.public void stopAdvertising()