Package-level declarations
Types
Pure Kotlin Base64 utility — no expect/actual needed.
A specialized FileOutputStream that writes data to a file in the application's external files directory. Primarily used for low-level protocol debugging and packet logging.
Utility for checking build properties, such as emulator detection.
Utility for checking build properties, such as emulator detection.
An async continuation that calls a callback when the result is available.
Platform-agnostic IgnoredOnParcel annotation.
Platform-agnostic Parcel representation for manual parceling (e.g. AIDL support).
Platform-agnostic Parcelable interface.
Platform-agnostic Parceler interface.
Platform-agnostic Parcelize annotation.
Platform-agnostic TypeParceler annotation.
A deferred execution object (with various possible implementations)
Platform-agnostic Date formatter utility.
Sometimes when starting services we face situations where messages come in that require computation but we can't do that computation yet because we are still waiting for some long running init to complete.
This util class allows you to optimize the binary size of the transmitted text message strings. It replaces certain characters from national alphabets with the characters from the latin alphabet that have an identical appearance (homoglyphs), for example: cyrillic "А", "С", "у" -> latin "A", "C", "y", etc. According to statistics, such letters can make up about 20-25% of the total number of letters in the average text. Replacing them with Latin characters reduces the binary size of the transmitted message. The average transmitted message volume can then fit around ~140-145 characters instead of ~115-120
Represents the system's preferred measurement system.
Pure Kotlin number formatting utility — no expect/actual needed.
A helper class that manages a single Job. When a new job is launched, any previous job is cancelled. This is useful for ensuring that only the latest operation of a certain type is running at a time (e.g. for search or settings updates).
A blocking version of coroutine Continuation using traditional threading primitives.
An InputFilter that constrains text length based on UTF-8 byte count instead of character count. This is particularly useful for fields that must be stored in byte-limited buffers, such as hardware configuration fields.
Properties
Functions
Wraps and discards exceptions, but reports them to the crash reporter before logging. Use this for operations that should not crash the process but are still unexpected.
Extracts WIFI SSID and password from a QR code string. Expected format: WIFI:S:SSID;P:PASSWORD;;
Retrieves PackageInfo for a given package name in a backward-compatible way.
Retrieves a Parcelable extra from an Intent in a backward-compatible way.
returns the system's preferred measurement system.
Launches a new coroutine with a central CoroutineExceptionHandler that reports errors to Exceptions.
Wraps and discards exceptions, optionally logging them.
Validates if the given string is a valid network address (IP or domain).
Reads a Parcelable from a Parcel in a backward-compatible way.
Registers a BroadcastReceiver using ContextCompat to ensure consistent behavior across Android versions.
Converts these seconds to an Instant.
Calls an initfn that is responsible for starting an operation and saving the SyncContinuation. Then blocks the current thread until the operation completes or times out.
Extension to convert platform Uri to CommonUri in Android source sets.
Wraps an operation and converts any thrown exceptions into RemoteException for safe return through an AIDL interface.