Package-level declarations

Types

Link copied to clipboard
@Singleton
class Zello : SendLocationHelperEvents, Application.ActivityLifecycleCallbacks

The Zello SDK singleton instance.

Link copied to clipboard

The status of the current account.

Link copied to clipboard
data class ZelloAlertMessage(val incoming: Boolean, val timestamp: Long, val contact: ZelloContact, val text: String, val channelUser: ZelloChannel.User? = null)

A Zello alert message. Alert messages contain text and are typically used for important messages. They will play a recurring sound until the user acknowledges them by bringing the app to the foreground.

Link copied to clipboard
open class ZelloChannel(val name: String, val isMuted: Boolean, val status: ZelloChannel.ConnectionStatus, val usersOnline: Int, val options: ZelloChannel.Options) : ZelloContact

A Zello channel. A channel contains multiple users.

Link copied to clipboard

Errors that are encountered by connection.

Link copied to clipboard

The connection state of the Zello SDK

Link copied to clipboard
data class ZelloConsoleSettings(val allowTextMessages: Boolean, val allowImageMessages: Boolean, val allowLocationMessages: Boolean, val allowAlertMessages: Boolean, val allowNonDispatchersToEndCalls: Boolean, val allowGroupConversations: Boolean)

Settings for the network. These are configured via the Zello Work Administrative Console.

Link copied to clipboard
sealed interface ZelloContact

The parent type for all Zello contact types, including users and channels.

Link copied to clipboard
data class ZelloCredentials(val network: String, val username: String, val password: String)

The credentials required to connect to Zello.

Link copied to clipboard
class ZelloDispatchChannel(val name: String, val isMuted: Boolean, val status: ZelloChannel.ConnectionStatus, val usersOnline: Int, val options: ZelloChannel.Options, val currentCall: ZelloDispatchChannel.Call?) : ZelloChannel

A Zello dispatch channel. A dispatch channel is a special type of channel that has calls between a user and a dispatcher.

Link copied to clipboard
class ZelloGroupConversation(val name: String, val isMuted: Boolean, val status: ZelloChannel.ConnectionStatus, val usersOnline: Int, val options: ZelloChannel.Options, val displayName: String, val users: List<ZelloChannel.User>, val onlineUsers: List<ZelloChannel.User>) : ZelloChannel

An ad-hoc group conversation in Zello. A ZelloGroupConversation is a type of ZelloChannel, but the provisioning is done by the end user instead of through the Zello Work Administrative Console.

Link copied to clipboard
data class ZelloHistoryAlertMessage(val contact: ZelloContact, val channelUser: ZelloChannel.User? = null, val timestamp: Long, val historyId: String, val incoming: Boolean, val text: String) : ZelloHistoryMessage

A Zello history alert message.

Link copied to clipboard
data class ZelloHistoryImageMessage(val contact: ZelloContact, val channelUser: ZelloChannel.User? = null, val timestamp: Long, val historyId: String, val incoming: Boolean) : ZelloHistoryMessage

A Zello history image message. The retrieve the Bitmap for the message, use the Zello.loadBitmapForHistoryImageMessage function.

Link copied to clipboard
data class ZelloHistoryLocationMessage(val contact: ZelloContact, val channelUser: ZelloChannel.User? = null, val timestamp: Long, val historyId: String, val incoming: Boolean, val latitude: Double, val longitude: Double, val accuracy: Double, val address: String?) : ZelloHistoryMessage

A Zello history location message.

Link copied to clipboard
sealed interface ZelloHistoryMessage

The parent type for all Zello history messages.

Link copied to clipboard
data class ZelloHistoryTextMessage(val contact: ZelloContact, val channelUser: ZelloChannel.User? = null, val timestamp: Long, val historyId: String, val incoming: Boolean, val text: String) : ZelloHistoryMessage

A Zello history text message.

Link copied to clipboard
data class ZelloHistoryVoiceMessage(val contact: ZelloContact, val channelUser: ZelloChannel.User? = null, val timestamp: Long, val historyId: String, val incoming: Boolean, val durationMs: Long) : ZelloHistoryMessage

A Zello history voice message. To play the message, use the Zello.playHistoryMessage function.

Link copied to clipboard
data class ZelloImageMessage(val contact: ZelloContact, val thumbnail: Bitmap?, val image: Bitmap?, val incoming: Boolean, val timestamp: Long, val channelUser: ZelloChannel.User? = null)

A Zello image message.

Link copied to clipboard
data class ZelloIncomingEmergency(val channel: ZelloChannel, val channelUser: ZelloChannel.User, val emergencyId: String, val startTimestamp: Long, val endTimestamp: Long? = null)

An incoming Zello emergency.

Link copied to clipboard
data class ZelloIncomingVoiceMessage(val contact: ZelloContact, val timestamp: Long, val channelUser: ZelloChannel.User? = null)

An incoming Zello voice message.

Link copied to clipboard
data class ZelloLocationMessage(val incoming: Boolean, val timestamp: Long, val contact: ZelloContact, val latitude: Double, val longitude: Double, val accuracy: Double, val address: String?, val channelUser: ZelloChannel.User? = null)

A Zello location message.

Link copied to clipboard
data class ZelloOutgoingEmergency(val channel: ZelloChannel, val startTimestamp: Long, val endTimestamp: Long? = null)

An outgoing Zello emergency

Link copied to clipboard
data class ZelloOutgoingVoiceMessage(val timestamp: Long, val contact: ZelloContact, val state: ZelloOutgoingVoiceMessage.State)

An outgoing Zello voice message.

Link copied to clipboard
data class ZelloRecentEntry(val contact: ZelloContact, val channelUser: ZelloChannel.User? = null, val type: ZelloRecentEntry.Type, val timestamp: Long, val incoming: Boolean)

A Zello recent entry. This contains information about the most recent message sent to the ZelloContact. There is only one recent entry per contact.

Link copied to clipboard
sealed class ZelloState

The state of the Zello SDK. SDK features can only be used once Zello.start is called and its Zello.state is Started.

Link copied to clipboard
data class ZelloTextMessage(val incoming: Boolean, val timestamp: Long, val contact: ZelloContact, val text: String, val channelUser: ZelloChannel.User? = null)

A Zello text message.

Link copied to clipboard
data class ZelloUser(val name: String, val isMuted: Boolean, val displayName: String, val status: ZelloUser.Status, val customStatusText: String?, val profilePictureUrl: String?, val profilePictureThumbnailUrl: String?, val supportedFeatures: ZelloUser.SupportedFeatures) : ZelloContact

A Zello user.