Package-level declarations

Types

Link copied to clipboard
actual class AttachedFile : IAttachment

Android specific AttachedFile

expect class AttachedFile : IAttachment
actual data class AttachedFile : IAttachment

Swift specific AttachedFile

Link copied to clipboard
class CFlow<T> : Flow<T>

This is a wrapper for Flow that can be used for Swift. It extends Flow and provides a watch method with which you can use Flow synchronously.

Link copied to clipboard
Link copied to clipboard
fun interface Closeable

Interface that may be used for close listener of CFlow

Link copied to clipboard
interface IAttachment

Interface of attached file.

Link copied to clipboard
interface IChat2Desk

Interface that may be used for connect to Chat2Desk, make and receive messages.

Link copied to clipboard
data class Settings(val authToken: String, val baseHost: String, val wsHost: String, val storageHost: String, var inMemory: Boolean? = false, var withLog: Boolean? = false)

General settings of library. Parameter values, authToken, baseHost, wsHost, storageHost must be taken from the widget settings.

Functions

Link copied to clipboard
fun Chat2Desk.Companion.create(settings: Settings, context: Context): IChat2Desk

Create the library client. You must set the Android context Context, and Settings.

fun Chat2Desk.Companion.create(settings: Settings): Chat2Desk

Create the library client. You must set the Settings.

Link copied to clipboard
fun <Error class: unknown class>.toByteArray(): ByteArray

Transform Swift NSData to Kotlin ByteArray

Link copied to clipboard
fun Chat2Desk.watchConnectionStatus(): CFlow<ConnectionState?>

Wrapper for connection status

Link copied to clipboard
fun Chat2Desk.watchCustomFields(): CFlow<List<CustomField>>

Wrapper for custom fields list

Link copied to clipboard

Wrapper for errors

Link copied to clipboard

Wrapper for message list

Link copied to clipboard
fun Chat2Desk.watchOperator(): CFlow<Operator?>

Wrapper for operator