public class ZBeacon extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZBeacon.Listener
All beacons with matching prefix are passed to a listener.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BROADCAST_HOST |
static long |
DEFAULT_BROADCAST_INTERVAL |
| Constructor and Description |
|---|
ZBeacon(int port,
byte[] beacon) |
ZBeacon(String host,
int port,
byte[] beacon) |
ZBeacon(String host,
int port,
byte[] beacon,
boolean ignoreLocalAddress) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBroadcastInterval() |
ZBeacon.Listener |
getListener() |
byte[] |
getPrefix() |
void |
setBroadcastInterval(long broadcastInterval) |
void |
setListener(ZBeacon.Listener listener) |
void |
setPrefix(byte[] prefix) |
void |
start() |
void |
stop() |
public static final long DEFAULT_BROADCAST_INTERVAL
public static final String DEFAULT_BROADCAST_HOST
public ZBeacon(int port,
byte[] beacon)
public ZBeacon(String host, int port, byte[] beacon)
public ZBeacon(String host, int port, byte[] beacon, boolean ignoreLocalAddress)
public void start()
public void stop()
throws InterruptedException
InterruptedExceptionpublic void setPrefix(byte[] prefix)
public byte[] getPrefix()
public void setListener(ZBeacon.Listener listener)
public ZBeacon.Listener getListener()
public long getBroadcastInterval()
public void setBroadcastInterval(long broadcastInterval)
Copyright © 2016. All rights reserved.