The current account status. undefined when state is not ZelloConnectionState.Connected.
The list of ZelloChannel in the contact list. Sorted by name, ascending.
The console settings for the network. This is only expected to be valid when state is ZelloConnectionState.Connected.
The configured emergency channel.
The list of ZelloGroupConversation in the contact list. Sorted by name, ascending.
The currently playing history voice message.
The list of incoming emergencies. There can be multiple emergencies on the emergency channel at once. Sorted by start timestamp, ascending.
The current incoming voice message.
The current outgoing emergency.
The current outgoing voice message.
The list of recent entries. Sorted by timestamp, descending.
The currently selected contact.
The current connection state of the SDK.
The list of ZelloUser in the contact list. Sorted by name, ascending.
Adds a listener to be invoked when events of the specified type are emitted. An optional calling context may be provided. The data arguments emitted will be passed to the listener function.
Name of the event to listen to
Function to invoke when the specified event is emitted
Rest
...args: any[]Optional
context: anyOptional context object to use when invoking the listener
Adds users to the given group conversation. This will trigger the ZelloEvent.GROUP_CONVERSATION_USERS_ADDED and ZelloEvent.CONTACT_LIST_UPDATED events.
The group conversation to add users to.
The users to add to the group conversation.
Sets configuration variables for the SDK.
The configuration to set.
Signs into to the Zello Work network using the provided credentials. This will typically trigger the ZelloEvent.CONNECT_STARTED event, followed by either ZelloEvent.CONNECT_SUCCEEDED or ZelloEvent.CONNECT_FAILED. However, if the state is incorrect, ZelloEvent.CONNECT_FAILED will be triggered immediately.
The credentials to use for signing in.
Connects to the given channel. Once connected, the user will be able to send and receive messages from the channel. This will trigger the ZelloEvent.CONTACT_LIST_UPDATED event.
The channel to connect to.
Creates a new group conversation with the given users. This will trigger the ZelloEvent.GROUP_CONVERSATION_CREATED and ZelloEvent.CONTACT_LIST_UPDATED events.
The users to create the group conversation with.
Optional
displayName: stringOptional; The display name of the group conversation. The conversation can be renamed later by using renameGroupConversation.
Signs out of the Zello Work network. This will trigger the ZelloEvent.DISCONNECTED event.
Disconnects from the given channel. Once disconnected, the user will no longer be able to send or receive messages from the channel. This will trigger the ZelloEvent.CONTACT_LIST_UPDATED event.
The channel to disconnect from.
Ends the dispatch call for the given dispatch channel. This will trigger the ZelloEvent.DISPATCH_CALL_ENDED event.
If ZelloConsoleSettings.allowNonDispatchersToEndCalls is false, this method will do nothing.
The dispatch channel to end the call for.
Returns the channel with the given name. Case-insensitive.
The name of the channel to search for.
The channel with the given name, or null if no channel with that name exists.
Returns the group conversation with the given name. Case-insensitive.
The name of the group conversation to search for.
The group conversation with the given name, or null if no group conversation with that name exists.
Returns the history messages for the given contact.
The contact to get the history for.
Optional
size: numberOptional; The number of history items to retrieve. Defaults to 50.
The history items for the given contact.
Returns the image data for the given history image message.
The history image message to get the image data for.
The image data for the given history image message.
Removes the user from the group conversation. This will trigger the ZelloEvent.GROUP_CONVERSATION_LEFT and ZelloEvent.CONTACT_LIST_UPDATED events.
The group conversation to leave.
Mutes the given contact. When muted, incoming messages from this contact will not play live, but will still appear in the history. This will trigger the ZelloEvent.CONTACT_LIST_UPDATED event.
The contact to mute.
Plays the given history message. This will trigger the ZelloEvent.HISTORY_PLAYBACK_STARTED event.
The history message to play.
Renames the group conversation. This will trigger the ZelloEvent.GROUP_CONVERSATION_RENAMED and ZelloEvent.CONTACT_LIST_UPDATED events.
The group conversation to rename.
The new name for the group conversation.
Sends the alert message to the given contact. This will trigger the ZelloEvent.OUTGOING_ALERT_MESSAGE_SENT or ZelloEvent.OUTGOING_ALERT_MESSAGE_SEND_FAILED event.
The contact to send the alert to.
The text to send.
Optional
level: ZelloChannelAlertLevelOptional; The alert level to send. Only applicable for channels.
Sends the image message data to the given contact. This will trigger the ZelloEvent.OUTGOING_IMAGE_MESSAGE_SENT or ZelloEvent.OUTGOING_IMAGE_MESSAGE_SEND_FAILED event.
The contact to send the image to.
The image data to send.
Sends the alert message to the given contact. This will trigger the ZelloEvent.OUTGOING_ALERT_MESSAGE_SENT or ZelloEvent.OUTGOING_ALERT_MESSAGE_SEND_FAILED event.
The contact to send the alert to.
Sends the text message to the given contact. This will trigger the ZelloEvent.OUTGOING_TEXT_MESSAGE_SENT or ZelloEvent.OUTGOING_TEXT_MESSAGE_SEND_FAILED event.
The contact to send the text to.
The text to send.
Sets the user's online account status. This will trigger the ZelloEvent.ACCOUNT_STATUS_CHANGED event.
The account status to set.
Sets the selected contact. While optional, this is typically used for tracking the contact that the user is currently interacting with. This will trigger the ZelloEvent.SELECTED_CONTACT_CHANGED event.
The contact to set as selected.
Starts an outgoing emergency to the emergency channel. Upon starting, the user's location will be sent, an alert message will be sent, and a 10-second-long voice message will start recording. This will trigger the ZelloEvent.OUTGOING_EMERGENCY_STARTED event.
Starts a voice message with the given contact. This will trigger the ZelloEvent.OUTGOING_VOICE_MESSAGE_CONNECTING event, followed by the ZelloEvent.OUTGOING_VOICE_MESSAGE_STARTED event. If there is an error, the ZelloEvent.OUTGOING_VOICE_MESSAGE_STOPPED event will be triggered.
The contact to start the voice message with.
Stops the outgoing emergency. This will trigger the ZelloEvent.OUTGOING_EMERGENCY_STOPPED event.
Stops the current history message playback. This will trigger the ZelloEvent.HISTORY_PLAYBACK_STOPPED event.
Stops the current outgoing voice message. This will trigger the ZelloEvent.OUTGOING_VOICE_MESSAGE_STOPPED event.
Unmutes a previously muted contact. When unmuted, incoming messages from this contact will play live. This will trigger the ZelloEvent.CONTACT_LIST_UPDATED event.
The contact to unmute.
Static
get
Zello SDK. This class is a singleton, and can be accessed via Zello.getInstance.