public interface IBlaubotBeacon extends IBlaubotConnectionAcceptor
IBlaubotIncomingConnectionListener
about this new connections (see IBlaubotConnectionAcceptor).| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionStateMachineStateChanged(IBlaubotState state)
Called when the
ConnectionStateMachine's state has changed. |
void |
setBeaconStore(IBlaubotBeaconStore beaconStore)
Setter method for the dependency injection of a beacon store.
|
void |
setBlaubot(Blaubot blaubot)
Dependency injecton of the blaubot instance the beacon is working for.
|
void |
setDiscoveryActivated(boolean active)
Enables and disables the discovery of other (remote) blaubot devices.
|
void |
setDiscoveryEventListener(IBlaubotDiscoveryEventListener discoveryEventListener)
Sets the discovery event listener which gets called whenever another remote device's
state was discovered by this beacon or the
BlaubotBeaconService. |
getAdapter, getConnectionMetaData, isStarted, setAcceptorListener, setListeningStateListener, startListening, stopListeningvoid setBlaubot(Blaubot blaubot)
blaubot - the blaubot instancevoid setBeaconStore(IBlaubotBeaconStore beaconStore)
setBeaconStore in interface IBlaubotConnectionAcceptorbeaconStore - the beacon store implementationvoid setDiscoveryEventListener(IBlaubotDiscoveryEventListener discoveryEventListener)
BlaubotBeaconService.discoveryEventListener - the listener to be setvoid onConnectionStateMachineStateChanged(IBlaubotState state)
ConnectionStateMachine's state has changed.
An implementation has to expose this state as soon as possible to compatible beacons.state - the new state of the ConnectionStateMachinevoid setDiscoveryActivated(boolean active)
active - if set to true, the discovery (if running) will be active - inactive otherwise