static MSBLEService com.mobstac.beaconstac.core.MSBLEService.getInstance |
( |
| ) |
|
|
static |
getter for the singleton instance
- Returns
- service instance
void com.mobstac.beaconstac.core.MSBLEService.init |
( |
| ) |
|
Function initialize the MSBLEService, Obtain the BluetoothAdapter instance
Callback when a BLE advertisement has been found.
- Parameters
-
Callback when batch results are delivered.
- Parameters
-
results | List of scan results that are previously scanned. |
Callback when scan could not be started.
- Parameters
-
errorCode | Error code (one of SCAN_FAILED_*) for scan failure. |
Callback when BLE scan data is received
- Parameters
-
device | bluetooth device |
rssi | current rssi value |
scanRecord | the bytestream of scan data |
IBinder com.mobstac.beaconstac.core.MSBLEService.onBind |
( |
Intent |
intent | ) |
|
- Parameters
-
intent | The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here. |
- Returns
- Return an IBinder through which clients can call on to the service.
void com.mobstac.beaconstac.core.MSBLEService.onDestroy |
( |
| ) |
|
Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead. Do not call this method directly.
int com.mobstac.beaconstac.core.MSBLEService.onStartCommand |
( |
Intent |
intent, |
|
|
int |
flags, |
|
|
int |
startId |
|
) |
| |
- Parameters
-
- Returns
- The return value indicates what semantics the system should use for the service's current started state. It may be one of the constants associated with the START_CONTINUATION_MASK bits.
- See also
- #stopSelfResult(int)
void com.mobstac.beaconstac.core.MSBLEService.triggeredRule |
( |
final String |
ruleName, |
|
|
final ArrayList< MSAction > |
actionarray |
|
) |
| |
callback when rule is triggered
- Parameters
-
ruleName | name of the rule being triggered |
actionarray | array of actions for the rule |
The documentation for this class was generated from the following file: