ChatLoadResponse

class ChatLoadResponse(fragment: Fragment?, error: NRError? = null) : DataStructure<Fragment?>

Result delivered to ChatLoadedListener when chat loading completes.

Either fragment is non-null and the chat is ready to be presented, or error is non-null and describes why the chat could not be loaded. Inspect error first; if it is null, present fragment.

Parameters

fragment

The chat UI Fragment to attach to the host, or null on failure.

error

The failure that prevented the chat from loading, or null on success.

Constructors

Link copied to clipboard
constructor(fragment: Fragment?, error: NRError? = null)

Properties

Link copied to clipboard

The resulting data, or null if the operation failed or produced no data.

Link copied to clipboard

The error that occurred, or null if the operation succeeded.

Link copied to clipboard

The chat UI fragment if loading succeeded, or null if error is set.