Package com.apollographql.apollo3.mpp

Types

Link copied to clipboard
enum Platform : Enum<Platform>

Functions

Link copied to clipboard
actual fun assertMainThreadOnNative()
actual fun assertMainThreadOnNative()
actual fun assertMainThreadOnNative()
Link copied to clipboard
actual fun currentThreadId(): String
expect fun currentThreadId(): String
actual fun currentThreadId(): String
actual fun currentThreadId(): String
Link copied to clipboard
actual fun currentThreadName(): String
expect fun currentThreadName(): String

The current thread name ("main" for the main thread). Used for debugging.

actual fun currentThreadName(): String
actual fun currentThreadName(): String
Link copied to clipboard
actual fun currentTimeFormatted(): String
expect fun currentTimeFormatted(): String

The current time as a human-readable String. Used for debugging.

actual fun currentTimeFormatted(): String
actual fun currentTimeFormatted(): String
Link copied to clipboard
actual fun currentTimeMillis(): Long
expect fun currentTimeMillis(): Long
actual fun currentTimeMillis(): Long
actual fun currentTimeMillis(): Long
Link copied to clipboard
actual fun ensureNeverFrozen(obj: Any)
expect fun ensureNeverFrozen(obj: Any)
actual fun ensureNeverFrozen(obj: Any)
actual fun ensureNeverFrozen(obj: Any)
Link copied to clipboard
actual fun freeze(obj: Any)
expect fun freeze(obj: Any)
actual fun freeze(obj: Any)
actual fun freeze(obj: Any)
Link copied to clipboard
actual fun isFrozen(obj: Any): Boolean
expect fun isFrozen(obj: Any): Boolean
actual fun isFrozen(obj: Any): Boolean
actual fun isFrozen(obj: Any): Boolean
Link copied to clipboard
actual fun platform(): Platform
expect fun platform(): Platform

The current platform. This is used from tests because Double.toString() doesn't behave the same on JS and other platforms. Prefer more specific functions like assertMainThreadOnNative when possible instead of checking the platform.

actual fun platform(): Platform
actual fun platform(): Platform