Event

open class Event @JvmOverloads constructor(val type: String, var data: Any? = null, val postEvent: () -> Unit? = null)

Base class for events the SDK passes between its components and to the host application.

Inheritors

Constructors

Link copied to clipboard
constructor(type: String, data: Any? = null, postEvent: () -> Unit? = null)

Properties

Link copied to clipboard
var data: Any?

Optional payload attached to the event.

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

Unused. The SDK never invokes this callback.

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.

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.