boomerangOf

actual fun boomerangOf(vararg pairs: Pair<String, Any>): Boomerang(source)

Android-specific implementation of boomerangOf that adds support for Parcelable, Serializable, and Bundle types.

This function extends the common implementation to handle Android-specific types.

Return

A new Boomerang instance with the provided key-value pairs

Parameters

pairs

Key-value pairs to store in the Boomerang

Throws

if any value has an unsupported type

expect fun boomerangOf(vararg pairs: Pair<String, Any>): Boomerang(source)

Creates a new Boomerang instance with the provided key-value pairs.

This is a convenient way to create a Boomerang with initial values. Works on all supported platforms (Android, iOS, Desktop).

Return

A new Boomerang instance with the provided key-value pairs

Parameters

pairs

Key-value pairs to store in the Boomerang

Throws

if any value has an unsupported type

actual fun boomerangOf(vararg pairs: Pair<String, Any>): Boomerang(source)

Desktop-specific implementation of boomerangOf.

This function handles common types for desktop platforms.

Return

A new Boomerang instance with the provided key-value pairs

Parameters

pairs

Key-value pairs to store in the Boomerang

Throws

if any value has an unsupported type

actual fun boomerangOf(vararg pairs: Pair<String, Any>): Boomerang(source)

iOS-specific implementation of boomerangOf.

This function handles common types for iOS platforms.

Return

A new Boomerang instance with the provided key-value pairs

Parameters

pairs

Key-value pairs to store in the Boomerang

Throws

if any value has an unsupported type