Package com. streamwide. smartms. lib. core. api. loneworker
Types
Link copied to clipboard
Fail reasons when starting LoneWorker service
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
STWLoneWorkerManagerClass responsible to manage all lone worker services ( Man down, Positive security) This class offers several possible operations defined in the following list:Stop lone worker serviceSchedule lone worker servicereCalibrationStop man down alert or Acknowledge an man down alert
- Start lone worker service
- Stop lone worker service
- Schedule lone worker service
- reCalibration
- Stop man down alert
- Acknowledge an man down alert
- Check services states
.......
STWLoneWorkerManager.getInstance().startLoneWorker(context, needToRestartService, loneWorkerStartCallback);
........
Content copied to clipboard
......
STWLoneWorkerManager.getInstance().stopLoneWorker(context);
......
Content copied to clipboard
......
STWLoneWorkerManager.getInstance().scheduleLoneWorker(context, loneWorkerDelay, informServer);
......
Content copied to clipboard
......
STWLoneWorkerManager.getInstance().recalibrate(context, loneWorkerStartCallback);
......
Content copied to clipboard
.....
STWLoneWorkerManager.getInstance().stopManDownAlert(context);
........
Content copied to clipboard
.....
STWLoneWorkerManager.getInstance().stopManDownAlert(Context context , String threadId);
........
Content copied to clipboard
.....
STWLoneWorkerManager.getInstance().setManDownAlertAcknowledged(this, messageId);
........
Content copied to clipboard