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

Converts a Unix timestamp (milliseconds) to a human-readable date-time string.

Link copied to clipboard

Wraps this Throwable in a OneTimeEvent for use in UI state management.

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, isCurrency: Boolean = false): String

Formats a number to a string with specified decimal places and thousands separators.

Link copied to clipboard

Recursively retrieves the ComponentActivity from any Context.

Link copied to clipboard

Retrieves a File object from the given content URI.

Link copied to clipboard

Converts the stack trace of this Throwable into a formatted 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

Validates if this string is a properly formatted email address.

Link copied to clipboard

Validates if this string meets password complexity requirements.

Link copied to clipboard

Validates if this string represents a valid full name.

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>

Converts a Flow to a StateFlow with a 5-second stop timeout for improved performance.