Package-level declarations

Results, callbacks, events, and error types used across the SDK.

Types

Link copied to clipboard
interface Completion<T>

Callback that receives the result of an asynchronous operation.

Link copied to clipboard
open class DataStructure<T> @JvmOverloads constructor(var data: T? = null, var error: NRError? = null)

Holds the outcome of an operation: either data on success or error on failure.

Link copied to clipboard
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.

Link copied to clipboard
open class NRError @JvmOverloads constructor(var errorCode: String = GeneralError, var reason: String? = Unknown, var description: String? = null, var data: Any? = null)

Represents a failure that can occur during a chat session.

Link copied to clipboard
class Result<T>

The outcome of an operation: either a success value or an NRError.