Package-level declarations

Contains general purpose utilities to simplify common use cases, for instance: extension functions for Animation and Collection.

The JsonSharedPreferenceDelegate is a property delegate that can be used for reading and writing the property value from and to SharedPreferences.

Types

Link copied to clipboard

Application class related utilities.

Link copied to clipboard

Utility to detect stable builds from development builds.

Link copied to clipboard

Property delegate for reading and writing the property value from and to sharedPreferences with sharedPreferenceKey.

Link copied to clipboard
@IviExperimental(reasons = [])
data class MergeWithEmittedData<T>(val value: T, val allFlowsEmitted: Boolean)

Functions

Link copied to clipboard
fun SharedPreferences.get(key: String, defaultValue: Any): Any

Retrieves the value of key from the preferences.

Link copied to clipboard

Same as the type-safe variant of PackageManager.getActivityInfo on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard

Same as the type-safe variant of PackageManager.getApplicationInfo on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard
fun SharedPreferences.getDouble(key: String, defaultValue: Double): Double

Retrieves the Double value of key from the preferences.

Link copied to clipboard

Same as the type-safe variant of PackageManager.getInstalledApplications on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard

Same as the type-safe variant of PackageManager.getPackageArchiveInfo on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard

Same as the type-safe variant of PackageManager.getPackageInfo on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard

Applies a mask to the provided String by replacing its content by a star "*", except the last two characters that will be kept as they are.

Link copied to clipboard
@IviExperimental(reasons = [])
fun <T> mergeWithEmittedData(vararg flows: Flow<T>): Flow<MergeWithEmittedData<T>>

Like merge, but returns MergeWithEmittedData, which not only contains T, but also whether all merged flows have emitted at least once.

Link copied to clipboard
fun SharedPreferences.put(key: String, newValue: Any)

Sets the key value in the preferences editor to newValue, and calls SharedPreferences.Editor.apply.

Link copied to clipboard

Sets key to the Double value value in the preferences editor, to be written back once SharedPreferences.Editor.commit or SharedPreferences.Editor.apply are called.

Link copied to clipboard

Same as the type-safe variant of PackageManager.queryBroadcastReceivers on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard

Same as the type-safe variant of PackageManager.queryIntentActivities on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard
fun PackageManager.queryIntentServicesCompat(intent: Intent, getResolvedFilter: Boolean = false, getMetaData: Boolean = false): List<ResolveInfo>

Same as the type-safe variant of PackageManager.queryIntentServices on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.

Link copied to clipboard

Removes the key value from the preferences and calls SharedPreferences.Editor.apply

Link copied to clipboard

Same as the type-safe variant of PackageManager.resolveActivity on Android 13 and later, or the type-unsafe variant on Android 12 or earlier.