UnavailableEvent

class UnavailableEvent(val isFollowedByForm: Boolean, val unavailableReason: String, reasonMsg: Any? = null) : StateEvent

A StateEvent with the StateEvent.Unavailable state, sent when the chat can't be started, for example because the deployment is unavailable or the connection failed; see unavailableReason.

Constructors

Link copied to clipboard
constructor(isFollowedByForm: Boolean, unavailableReason: String, reasonMsg: Any? = null)

Properties

Link copied to clipboard
var data: Any?

Optional payload attached to the event.

Link copied to clipboard

Whether a form is shown to the user after this event.

Link copied to clipboard
val postEvent: () -> Unit?

Unused. The SDK never invokes this callback.

Link copied to clipboard
Link copied to clipboard

The event category, for example "state" for com.genesys.cloud.integration.core.StateEvent or "error" for com.genesys.cloud.integration.core.ErrorEvent.

Link copied to clipboard

The reason the chat is unavailable, for example the name of an UnavailableReason value.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two events are equal when their type, data, and postEvent are equal.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code based on type.