Package com. streamwide. smartms. lib. core. api. emergency
Types
Link copied to clipboard
This interface is used with STWEmergencyManager to track the result of starting an emergency alert request.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
use setExternalLocationProvider
Link copied to clipboard
When implementing the feature Raise Channel to Emergency Mode we need two subType for Emergency Call :
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Public interface to handle all emergency events.
Link copied to clipboard
STWEmergencyManagerClass responsible to manage all emergency alerts This class offers several possible operations defined in the following list:Start an emergency alert callStop an emergency alertAcknowledge an emergency alertCheck if exist any emergency onCheck if the automatic floor control for Emergency PTT Call is enabledCheck if Channel dependant Emergency Call is allowedStart Emergency Call with connected users of active channel You can use this method to start emergency call with :
- Start an emergency alert
- Start an emergency alert call
- Stop an emergency alert
- Acknowledge an emergency alert
- Check if exist any emergency on
.......
@STWEmergencyLevel int emergencyLevel = STWEmergencyLevel.EMERGENCY_ALERT_URGENT;
STWEmergencyManager.getInstance().startEmergencyAlert(context, emergencyLevel, new STWEmergencyCompletionCallback() {
public void onStart(String threadId) {
//Code...
}
public void onError(int errorId) {
//Code...
}
});
........
Content copied to clipboard
......
STWEmergencyManager.getInstance().startEmergencyCall(context, new CompletionCallback() {
public void onCompletion(STWVCall vCall) {
//Code...
}
public void onError(int callFailReason) {
//Code...
}
}, new FallbackCallback() {
public void onFallback(String emergencyAlertNumber) {
//Start cellular emergency call..
}
});
......
Content copied to clipboard
.....
STWEmergencyManager.getInstance().stopEmergencyAlert(context, threadId, new STWEmergencyCompletionCallback() {
public void onStart(String threadId) {
//Code...
}
public void onError(int errorId) {
//Code...
}
});
........
Content copied to clipboard
.....
STWEmergencyManager.getInstance().setEmergencyAlertAcknowledged(context, messageId);
........
Content copied to clipboard
.....
STWEmergencyManager.getInstance().isAlertOn(context, threadId);
........
Content copied to clipboard
.....
STWEmergencyManager.getInstance().isAutomaticFloorControlForEmergencyAllowed();
........
Content copied to clipboard
.....
STWEmergencyManager.getInstance().isChannelDependantEmergencyAllowed();
........
Content copied to clipboard
- Single recipients
- Groups recipients
- Both
Link copied to clipboard
Link copied to clipboard