Package com.orange.webcom.sdk

Exposes the main public API of the Webcom SDK.

Types

Link copied to clipboard
data class Canceled : Notification.ControlNotification, Notifiable

Generic event to be notified when a subscription is canceled, that is deliberately stopped.

Link copied to clipboard
interface Notification<out T : Notifiable>

Base interface for passing an event of type T to a callback function.

Link copied to clipboard
interface Subscription

Represents a subscription to some event type.

Link copied to clipboard
object Webcom

Provides some high-level static methods and properties to handle the Webcom SDK for Android.

Link copied to clipboard
class WebcomApplication : JsObjectWrapper

Represents a Webcom application.

Link copied to clipboard
data class WebcomConfiguration @JvmOverloads constructor(    val identifier: String,     val platform: URL? = null,     val offlineCache: String? = null,     val startOnline: Boolean = true,     val websocketProtocol: WebcomConfiguration.WebsocketProtocol = defaultWebsocketProtocol,     val pingDelayMs: Int? = null,     val pongDelayMs: Int? = null)

Represents the settings of a WebcomApplication instance.

Link copied to clipboard
typealias WebcomDoneCallback = (WebcomResult<Unit>) -> Unit

Shortcut type for callbacks that return nothing and that may fail.

Link copied to clipboard
class WebcomError

Represents an error generated by the Webcom SDK for Android.

Link copied to clipboard
class WebcomException : Exception

Represents an Exception thrown by the Webcom SDK for Android. It generally wraps an error of type WebcomError.

Link copied to clipboard
sealed class WebcomResult<out T>

Wraps the result of a computation of type T.