The main class and entry point for working with the Beaconstac SDK.
void com.mobstac.beaconstac.core.Beaconstac.enableGeofences |
( |
boolean |
enabled | ) |
|
This method is used to enable and disable geofences around MSPlace objects. The default state is enabled.
- Parameters
-
enabled | A boolean value to enable/disable geofences |
int com.mobstac.beaconstac.core.Beaconstac.getActiveScanDuration |
( |
| ) |
|
This method is used to get the active scan duration
- Returns
- active scan duration
String com.mobstac.beaconstac.core.Beaconstac.getDevToken |
( |
| ) |
|
Thie method is used to get the developer token.
- Returns
- developer token
static Beaconstac com.mobstac.beaconstac.core.Beaconstac.getInstance |
( |
final Context |
context | ) |
|
|
static |
- Parameters
-
context | application context |
- Returns
- beaconstac singleton instance
long com.mobstac.beaconstac.core.Beaconstac.getOrgId |
( |
| ) |
|
This method is used to get the organization id
- Returns
- organization id
int com.mobstac.beaconstac.core.Beaconstac.getPassiveScanDuration |
( |
| ) |
|
This method is used to get the passive scan duration
- Returns
- passive scan duration
boolean com.mobstac.beaconstac.core.Beaconstac.setActiveScanDuration |
( |
int |
duration | ) |
|
This method is used to customize the active scan duration when beacons are being scanned in foreground
The change will not take effect till you stop and start the scanning
- Parameters
-
- Returns
- true if updated
void com.mobstac.beaconstac.core.Beaconstac.setBeaconAffinity |
( |
MSBLEService.MSBeaconAffinity |
affinity | ) |
|
Set Beacon Affinity value for scanning. The change will not take effect till you stop and start the scanning
- Parameters
-
void com.mobstac.beaconstac.core.Beaconstac.setDevToken |
( |
String |
devToken | ) |
|
Thie method is used to dynamically set developer token. Token, if set using this method, will override the value in beaconstac.xml
void com.mobstac.beaconstac.core.Beaconstac.setOrgId |
( |
long |
orgId | ) |
|
This method is used to dynamically set the organization id. Organization id, if set using this method, will override the value in beaconstac.xml
- Parameters
-
boolean com.mobstac.beaconstac.core.Beaconstac.setPassiveScanDuration |
( |
int |
duration | ) |
|
This method is used to customize the passive scan duration when beacons are being scanned in background
The change will not take effect till you stop and start the scanning
- Parameters
-
- Returns
- true if updated
void com.mobstac.beaconstac.core.Beaconstac.setRegionParams |
( |
String |
uuid, |
|
|
String |
identifier |
|
) |
| |
This method is used to set region-related parameters to filter the beacons being scanned.
- Parameters
-
uuid | The UUID value of beacons to filter by |
identifier | Region identifier |
void com.mobstac.beaconstac.core.Beaconstac.setUserFacts |
( |
String |
key, |
|
|
String |
value |
|
) |
| |
This method is used to set user-related 'facts' used by the SDK.
- Parameters
-
key | for the fact |
value | of type String |
void com.mobstac.beaconstac.core.Beaconstac.setUserFacts |
( |
String |
key, |
|
|
int |
value |
|
) |
| |
This method is used to set user-related 'facts' used by the SDK.
- Parameters
-
key | for the fact |
value | of type int |
void com.mobstac.beaconstac.core.Beaconstac.setUserFacts |
( |
String |
key, |
|
|
long |
value |
|
) |
| |
This method is used to set user-related 'facts' used by the SDK.
- Parameters
-
key | for the fact |
value | of type long |
void com.mobstac.beaconstac.core.Beaconstac.setUserFacts |
( |
String |
key, |
|
|
float |
value |
|
) |
| |
This method is used to set user-related 'facts' used by the SDK.
- Parameters
-
key | Key for the fact |
value | Value of type float |
synchronized void com.mobstac.beaconstac.core.Beaconstac.startRangingBeacons |
( |
| ) |
throws MSException |
This method is used to start ranging beacons
- Exceptions
-
MSException | BLENotSupportedException - If the device does not support BLE |
synchronized void com.mobstac.beaconstac.core.Beaconstac.stopRangingBeacons |
( |
| ) |
throws MSException |
This method is used to stop ranging beacons
- Exceptions
-
MSException | BLENotSupportedException - If the device does not support BLE |
void com.mobstac.beaconstac.core.Beaconstac.syncRules |
( |
| ) |
|
This method is used to explicitly sync the rules for processing. By default, rules are synced every ruleSyncInterval
set in beaconstac.xml
The documentation for this class was generated from the following file: