invoke

suspend operator fun invoke(block: PushConfiguration.() -> Unit = {}): PushClient

Create a PushClient instance with a customizable configuration block. This allows for a more fluent, DSL-style configuration approach.

Return

An initialized PushClient instance.

val pushClient = PushClient {
timeoutMs = 60000
logger = Logger.STANDARD
storage = SQLPushStorage() // Uses encrypted storage by default
// Add custom push handlers
addPushHandler("CUSTOM_PLATFORM", CustomPushHandler())
}

Parameters

block

The configuration block to customize the client configuration.