Package-level declarations

Types

Link copied to clipboard
expect class CustomObject
actual typealias CustomObject = Any
typealias CustomObject = Any
actual class CustomObject(val value: Map<String, Any?> = emptyMap()) : Map<String, Any?>
Link copied to clipboard
data class DataUploadContent(val data: ERROR CLASS: Symbol not found for NSData, val contentType: String?) : Uploadable
Link copied to clipboard
data class FileUploadContent(val url: ERROR CLASS: Symbol not found for NSURL) : Uploadable
Link copied to clipboard
data class StreamUploadContent(val stream: ERROR CLASS: Symbol not found for NSInputStream, val contentType: String?, val contentLength: Int) : Uploadable
Link copied to clipboard
actual abstract class Uploadable
expect abstract class Uploadable
actual abstract class Uploadable
actual typealias Uploadable = InputStream
Link copied to clipboard
class UploadableImpl(fileInput: Any) : Uploadable

Functions

Link copied to clipboard
fun <T> PNFuture<T>.alsoAsync(action: (T) -> PNFuture<*>): PNFuture<T>

Execute a second PNFuture after this PNFuture completes successfully, and return the original value of this PNFuture after the second PNFuture completes successfully.

Link copied to clipboard
Link copied to clipboard
fun <T, U> awaitAll(future1: PNFuture<T>, future2: PNFuture<U>): PNFuture<Pair<T, U>>
fun <T, U, X> awaitAll(future1: PNFuture<T>, future2: PNFuture<U>, future3: PNFuture<X>): PNFuture<Triple<T, U, X>>
Link copied to clipboard
Link copied to clipboard
fun <T> PNFuture<T>.catch(action: (Exception) -> Result<T>): PNFuture<T>
Link copied to clipboard
Link copied to clipboard
actual fun createEventListener(pubnub: PubNub, onMessage: (PubNub, ERROR CLASS: Symbol not found for PNMessageResult) -> Unit, onPresence: (PubNub, ERROR CLASS: Symbol not found for PNPresenceEventResult) -> Unit, onSignal: (PubNub, ERROR CLASS: Symbol not found for PNSignalResult) -> Unit, onMessageAction: (PubNub, ERROR CLASS: Symbol not found for PNMessageActionResult) -> Unit, onObjects: (PubNub, PNObjectEventResult) -> Unit, onFile: (PubNub, ERROR CLASS: Symbol not found for PNFileEventResult) -> Unit): EventListener
expect fun createEventListener(pubnub: PubNub, onMessage: (PubNub, PNMessageResult) -> Unit = { _, _ -> }, onPresence: (PubNub, PNPresenceEventResult) -> Unit = { _, _ -> }, onSignal: (PubNub, PNSignalResult) -> Unit = { _, _ -> }, onMessageAction: (PubNub, PNMessageActionResult) -> Unit = { _, _ -> }, onObjects: (PubNub, PNObjectEventResult) -> Unit = { _, _ -> }, onFile: (PubNub, PNFileEventResult) -> Unit = { _, _ -> }): EventListener
actual fun createEventListener(pubnub: PubNub, onMessage: (PubNub, PNMessageResult) -> Unit, onPresence: (PubNub, PNPresenceEventResult) -> Unit, onSignal: (PubNub, PNSignalResult) -> Unit, onMessageAction: (PubNub, PNMessageActionResult) -> Unit, onObjects: (PubNub, PNObjectEventResult) -> Unit, onFile: (PubNub, PNFileEventResult) -> Unit): EventListener
actual fun createEventListener(pubnub: PubNub, onMessage: (PubNub, PNMessageResult) -> Unit, onPresence: (PubNub, PNPresenceEventResult) -> Unit, onSignal: (PubNub, PNSignalResult) -> Unit, onMessageAction: (PubNub, PNMessageActionResult) -> Unit, onObjects: (PubNub, PNObjectEventResult) -> Unit, onFile: (PubNub, PNFileEventResult) -> Unit): EventListener
Link copied to clipboard
actual fun createPubNub(config: ERROR CLASS: Symbol not found for PNConfiguration): PubNub
expect fun createPubNub(config: PNConfiguration): PubNub
actual fun createPubNub(config: PNConfiguration): PubNub
actual fun createPubNub(config: PNConfiguration): PubNub
Link copied to clipboard
actual fun createStatusListener(pubnub: PubNub, onStatus: (PubNub, ERROR CLASS: Symbol not found for PNStatus) -> Unit): StatusListener
expect fun createStatusListener(pubnub: PubNub, onStatus: (PubNub, PNStatus) -> Unit = { _, _ -> }): StatusListener
actual fun createStatusListener(pubnub: PubNub, onStatus: (PubNub, PNStatus) -> Unit): StatusListener
actual fun createStatusListener(pubnub: PubNub, onStatus: (PubNub, PNStatus) -> Unit): StatusListener
Link copied to clipboard
fun <T, R> T.letIfDefined(block: (T?) -> R): R?
Link copied to clipboard
fun <T> ERROR CLASS: Symbol not found for Consumer<ERROR CLASS: Symbol not found for Result<T>>.onFailureHandler(mapper: (ERROR CLASS: Symbol not found for NSError??) -> Throwable = { error: NSError? -> if (error is KMPError) { PubNubException(error.statusCode().toInt(), error.localizedDescription, null) } else { PubNubException(errorMessage = error?.localizedDescription) } }): (ERROR CLASS: Symbol not found for NSError??) -> Unit
Link copied to clipboard
fun <T, U> ERROR CLASS: Symbol not found for Consumer<ERROR CLASS: Symbol not found for Result<U>>.onSuccessHandler(mapper: (T) -> U): (T) -> Unit
Link copied to clipboard
fun <T, X, Y> ERROR CLASS: Symbol not found for Consumer<ERROR CLASS: Symbol not found for Result<Y>>.onSuccessHandler2(mapper: (T, X) -> Y): (T, X) -> Unit
Link copied to clipboard
fun <T, X, Y, U> ERROR CLASS: Symbol not found for Consumer<ERROR CLASS: Symbol not found for Result<U>>.onSuccessHandler3(mapper: (T, X, Y) -> U): (T, X, Y) -> Unit
Link copied to clipboard
fun <T> ERROR CLASS: Symbol not found for Consumer<ERROR CLASS: Symbol not found for Result<T>>.onSuccessReturnValue(value: T): () -> Unit
Link copied to clipboard
Link copied to clipboard
inline fun <K, V> Map<*, *>.safeCast(): Map<K, V>
Link copied to clipboard
fun <T, U> PNFuture<T>.then(action: (T) -> U): PNFuture<U>
Link copied to clipboard
fun <T, U> PNFuture<T>.thenAsync(action: (T) -> PNFuture<U>): PNFuture<U>