Package-level declarations

Properties

Link copied to clipboard

Returns this app's Play Store details URL.

Functions

Link copied to clipboard
inline fun <T> componentName(context: Context): ComponentName

Creates a ComponentName for the given component type T.

Link copied to clipboard
fun Intent.getIntExtraOrNull(name: String, defaultValue: Int): Int?

Reads an integer extra or returns null when it is absent.

Link copied to clipboard

Returns PackageInfo with requested permissions included.

Link copied to clipboard

Returns the permissions requested by this app package.

Link copied to clipboard

Reads a typed parcelable array extra from this Intent.

Link copied to clipboard

Reads a typed parcelable array-list extra from this Intent.

Link copied to clipboard
inline fun <T : Parcelable> Intent.getParcelableCompat(name: String): T?

Reads a typed Parcelable extra from this Intent.

Link copied to clipboard

Returns whether this context has permission.

Link copied to clipboard
inline fun <T> intent(context: Context): Intent

Creates an explicit Intent targeting the component of type T.

Link copied to clipboard

Opens this app's system settings screen.

Link copied to clipboard
fun Context.openUrl(url: String, onActivityNotFoundException: (Context) -> Unit = { showToast( R.string.on_activity_not_found_exception_message, Toast.LENGTH_LONG ) })

Opens url in a browser-capable activity.

Link copied to clipboard
fun Context.startActivity(intent: Intent, onActivityNotFoundException: (Context) -> Unit)

Starts intent with fallback handling when no activity can handle it.

Link copied to clipboard

Returns a compact, human-readable string representation of this Intent suitable for logging or debugging.