Package-level declarations

Types

Link copied to clipboard
annotation class Options

Annotation to define the valid options for notification importance levels.

Functions

Link copied to clipboard

Formats a Long timestamp to a human-readable date-time string. Uses the system default time zone.

Link copied to clipboard

Extension function to convert a Throwable into a OneTimeEvent.

Link copied to clipboard
fun Context.cancelNotification(notificationId: Int)

Cancels a previously shown notification.

Link copied to clipboard
fun Context.createNotification(channelId: String, @StringRes title: Int, @StringRes content: Int, icon: Int, pendingIntent: PendingIntent? = null): Notification
fun Context.createNotification(channelId: String, title: String, content: String, icon: Int, pendingIntent: PendingIntent? = null): Notification

Creates a notification using the specified channel ID, title, content, and icon.

Link copied to clipboard
fun Context.createNotificationChannel(channelId: String, @StringRes channelName: Int, @StringRes channelDescription: Int, importance: Int)

Creates a notification channel with the specified channel ID, name, description, and importance.

Link copied to clipboard
fun Context.createProgressNotification(channelId: String, @StringRes title: Int, total: Int, current: Int, @DrawableRes icon: Int, pendingIntent: PendingIntent? = null): Notification

Creates a progress notification using the specified channel ID, title, total, current, and icon.

Link copied to clipboard
fun <T : Number, Comparable<T>> T.format(nDecimal: Int = 2): String

Formats a number (Float or Double) to a string with specified number of decimal places. Handles special cases like NaN and Infinity. Uses locale-specific decimal separator. Removes trailing zeros after decimal point.

Link copied to clipboard

Provides the activity from Context (https://stackoverflow.com/a/68423182/12737399)

Link copied to clipboard

Retrieves a File object from the given content URI.

Link copied to clipboard

Extension function to get the stack trace of a Throwable as a string.

Link copied to clipboard

Retrieves a temporary file URI for the specified app ID.

Link copied to clipboard

Checks if the app has a given permission.

Link copied to clipboard

Checks if all the given permissions are granted.

Link copied to clipboard

Checks if the string is a valid email address.

Link copied to clipboard

Checks if the string is a valid password based on the specified criteria.

Link copied to clipboard

Checks if a given full name is valid.

Link copied to clipboard
fun Context.showNotification(notificationId: Int, notification: Notification)

Shows a notification using the specified notification ID and notification object.

Link copied to clipboard
fun Context.showToast(message: String)

Displays a short toast message.

Link copied to clipboard
fun <T> Flow<T>.stateInDelayed(initialValue: T, scope: CoroutineScope): StateFlow<T>

Returns a StateFlow that represents the last value emitted by the Flow