STWEmergency Api
STWEmergencyApi
Description:
Class responsible to manage all emergency alerts
This class offers several possible operations defined in the following list:
- Check if raise channel to emergency mode is allowed
- When raise channel feature is allowed, check if user can raise the channel to emergency mode
- Check if the current user is the initiator of raise channel to emergency mode
- Check if exist raised channel by the current user
Check if raise channel to emergency mode is allowed
{@code
.......
STWEmergencyApi.isActiveChannelEmergencyCallType()........ }
When raise channel feature is allowed, check if user can raise the channel to emergency mode
{@code
.......
STWEmergencyApi.canRaiseChannelToEmergencyMode(context)........ }
Check if the current user is the initiator of raise channel to emergency mode
{@code
.......
STWEmergencyApi.iAmChannelEmergencyInitiator(context,stwPTTCall)........ }
Check if exist raised channel by the current user
{@code
.......
STWEmergencyApi.isExistRaisedChannelByCurrentUser(context)........ }
Functions
Call this method to check if can raise channel to emergency mode :
Call this method to check whether the emergency feature is allowed or not.
Call this methode to check if the current user is the initiator of emergency in channel (who raised the channel to Emergency Mode)
Check if emergency call type is "active channel" callType = 2
Check if the specified conversation is in alert mode
Check whether the EmergencyAmbientListening feature is enabled or not.
Check if the EmergencyAmbientListening Conversation need to show or no
Check whether the EmergencyCall feature is enabled or not.
Check whether the EmergencyMessage feature is enabled or not.
Call this method to check if exist a channel raised to emergency mode by the current user
Call this method to start a new Emergency PTT call with preconfigured recipients
Call this method to start a new Emergency PTT call with additional recipients besides the pre-configured recipients
Inherited functions
Subscribes to the specific eventTypes of the client.
Subscribes to the specific eventTypes of the client, in the lifecycle of lifecycleOwner.
Subscribes to the specific eventTypes of the client with additional filter.
Subscribes to the specific eventTypes of the client with additional filter, in the lifecycle of lifecycleOwner.
Subscribes for the next event with the given eventType.