Package-level declarations

Types

Link copied to clipboard

The types of supported native bridges.

Link copied to clipboard
data class DecryptResponse(var result: List<Byte>, var scope: String)
Link copied to clipboard
interface Disposable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object FfiConverterTypePushManager : FfiConverter<PushManager, <Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
open class ForeignBytes
Link copied to clipboard
Link copied to clipboard
data class KeyInfo(var auth: String, var p256dh: String)

Key Information that can be used to encrypt payloads

Link copied to clipboard
object NoPointer

Used to instantiate an interface without an actual pointer, for fakes in tests, mostly.

Link copied to clipboard

The main Error returned from the Push component, each variant describes a different error

Link copied to clipboard
data class PushConfiguration(var serverHost: String, var httpProtocol: PushHttpProtocol, var bridgeType: BridgeType, var senderId: String, var databasePath: String, var verifyConnectionRateLimiter: ULong?)
Link copied to clipboard

Supported protocols for push "Https" is default, and "Http" is only supported for tests

Link copied to clipboard

Object representing the PushManager used to manage subscriptions

Link copied to clipboard

Object representing the PushManager used to manage subscriptions

Link copied to clipboard
data class PushSubscriptionChanged(var channelId: String, var scope: String)

An dictionary describing the push subscription that changed, the caller will receive a list of `PushSubscriptionChanged` when calling `PushManager::verify_connection`, one entry for each channel that the caller should resubscribe to

Link copied to clipboard
open class RustBuffer
Link copied to clipboard

The equivalent of the *mut RustBuffer type. Required for callbacks taking in an out pointer.

Link copied to clipboard
data class SubscriptionInfo(var endpoint: String, var keys: KeyInfo)

Subscription Information, the endpoint to send push messages to and the key information that can be used to encrypt payloads

Link copied to clipboard
data class SubscriptionResponse(var channelId: String, var subscriptionInfo: SubscriptionInfo)

The subscription response object returned from `PushManager::subscribe`

Link copied to clipboard
interface UniffiCleaner

Functions

Link copied to clipboard
inline fun <T : Disposable?, R> T.use(block: (T) -> R): R