Package-level declarations

Functions

Link copied to clipboard
fun Context.copyTextToClipboard(label: String, text: String, isSensitive: Boolean = false, onCopyFallback: () -> Unit = {}): Boolean

Copies text to the clipboard.

Link copied to clipboard

Traverses the context chain and returns the first ComponentActivity if present.

Link copied to clipboard

Returns true if POST_NOTIFICATIONS is granted, or if the platform doesn't require it (<33).

Link copied to clipboard

Whether the person has turned animations off system-wide.

Link copied to clipboard

Opens app notification settings, falling back to app details and then general settings when a launch fails.

Link copied to clipboard

Opens system display settings, with a fallback to general settings.

Link copied to clipboard

Opens the Play Store page for packageName, falling back to HTTPS.

Link copied to clipboard
Link copied to clipboard
fun Context.sendEmailToDeveloper(@StringRes applicationNameRes: Int): Boolean

Composes an email to the developer using ACTION_SENDTO (mailto:).

Link copied to clipboard
fun Context.shareApp(@StringRes shareMessageFormat: Int, packageName: String = this.packageName): Boolean

Shares a Play Store link for packageName using ACTION_SEND.

Link copied to clipboard
fun Context.startActivitySafely(intent: Intent, addNewTaskFlag: Boolean = true, onFailure: (Throwable) -> Unit = {}): Boolean

Attempts the launch and catches failures instead of using resolveActivity, which can reject valid handlers under Android 11 package visibility rules.