Package com.streamwide.smartms.lib.core.api.emergency

Types

Link copied to clipboard
interface EmergencyAlertCompletionCallback : STWCallback<T>
This interface is used with STWEmergencyManager to track the result of starting an emergency alert request.
Link copied to clipboard
open class EmergencyAlertError : Error
Link copied to clipboard
open class EmergencyAmbientListeningCallError : CallError
Link copied to clipboard
interface LocationCallback
use setExternalLocationProvider
Link copied to clipboard
annotation class STWEmergencyCallSubType

When implementing the feature Raise Channel to Emergency Mode we need two subType for Emergency Call :

Link copied to clipboard
annotation class STWEmergencyCategory
Link copied to clipboard
annotation class STWEmergencyLevel
Link copied to clipboard
interface STWEmergencyListener
Public interface to handle all emergency events.
Link copied to clipboard
open class STWEmergencyManager
STWEmergencyManagerClass responsible to manage all emergency alerts This class offers several possible operations defined in the following list:
  • Start an emergency alert
  • Start an emergency alert call
  • Stop an emergency alert
  • Acknowledge an emergency alert
  • Check if exist any emergency on
 Start an emergency alert 

.......
&#64;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...
     }
});
........
Start an emergency alert call

......
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..
     }
});
......
Stop an emergency alert

.....
STWEmergencyManager.getInstance().stopEmergencyAlert(context, threadId, new STWEmergencyCompletionCallback() {

     public void onStart(String threadId) {
            //Code...
     }


     public void onError(int errorId) {
            //Code...
     }
});
........
Acknowledge an emergency alert

.....
STWEmergencyManager.getInstance().setEmergencyAlertAcknowledged(context, messageId);
........
Check if exist any emergency on

.....
STWEmergencyManager.getInstance().isAlertOn(context, threadId);
........
Check if the automatic floor control for Emergency PTT Call is enabled

.....
STWEmergencyManager.getInstance().isAutomaticFloorControlForEmergencyAllowed();
........
Check if Channel dependant Emergency Call is allowed

.....
STWEmergencyManager.getInstance().isChannelDependantEmergencyAllowed();
........
Start Emergency Call with connected users of active channel You can use this method to start emergency call with :
  • Single recipients
  • Groups recipients
  • Both
Just you need pass the right recipients param format [groupId:123,groupId:456,21699926249@smartms206.streamwide.com,...
Link copied to clipboard
annotation class STWEmergencyState
Link copied to clipboard
annotation class STWEmergencyType