Package-level declarations

Types

Link copied to clipboard

Application info flags wrapper.

Link copied to clipboard

Clip data builder.

Link copied to clipboard

Package info flags wrapper.

Properties

Link copied to clipboard

Get clipboard manager.

Link copied to clipboard

Get the first primary clip item.

Link copied to clipboard

Get the first primary clip item or null.

Link copied to clipboard

Get the primary cpu abi for the application.

Link copied to clipboard

Get the secondary cpu abi for the application.

Link copied to clipboard

Get the version code of package info (compat).

Functions

Link copied to clipboard
fun BroadcastReceiver(body: BroadcastReceiver.(context: Context, intent: Intent) -> Unit): BroadcastReceiver.(context: Context, intent: Intent) -> Unit

Create a BroadcastReceiver body.

Link copied to clipboard
inline fun ClipData(label: CharSequence? = null, builder: ClipDataBuilder.() -> Unit): ClipData

Create a clip data.

Link copied to clipboard

Copy to clipboard.

Copy intent to clipboard.

Copy plain text to clipboard.

fun ClipboardManager.copy(uri: Uri, label: CharSequence? = null, resolver: ContentResolver?)
fun ClipboardManager.copy(uri: Uri, mimeTypes: List<String> = emptyList(), label: CharSequence? = null)
fun ClipboardManager.copy(uri: Uri, vararg mimeTypes: String, label: CharSequence? = null)

Copy uri to clipboard.

fun ClipboardManager.copy(text: CharSequence, htmlText: String, label: CharSequence? = null)

Copy html text to clipboard.

Link copied to clipboard
fun PackageManager.disableComponent(componentName: ComponentName, vararg flags: Int)

Disable an componentName.

Link copied to clipboard
fun PackageManager.enableComponent(componentName: ComponentName, vararg flags: Int)

Enable an componentName.

Link copied to clipboard

Get the current component name of this application.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The wrapper of PackageManager's function.

Link copied to clipboard

The wrapper of PackageManager's function.

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

Get the Parcelable data (compat).

Link copied to clipboard

Get the Parcelable data (compat).

Link copied to clipboard

Get the Serializable data (compat).

Link copied to clipboard

Get the Serializable data (compat).

Link copied to clipboard

Determine whether the application has given flags.

Link copied to clipboard

Determine whether the packageName has any launch activity.

Link copied to clipboard

Determine whether the packageName was installed.

Link copied to clipboard
inline fun <T : Any> Intent(packageContext: Context): Intent
inline fun <T : Any> Intent(action: String, uri: Uri, packageContext: Context): Intent

Create an intent for a specific component with the class type T.

Link copied to clipboard

Determine whether the componentName is enabled or default.

Link copied to clipboard

Get the clip data item list.

Link copied to clipboard

Get the primary clip item.

Link copied to clipboard

Get the primary clip item or null.

Link copied to clipboard

Query launch activities for packageName.

Link copied to clipboard
Link copied to clipboard
fun Context.registerReceiver(filter: IntentFilter, flags: Int? = null, exported: Boolean = true, body: BroadcastReceiver.(context: Context, intent: Intent) -> Unit): BroadcastReceiver

Register a broadcast receiver.

Link copied to clipboard
fun PackageManager.resetComponent(componentName: ComponentName, vararg flags: Int)

Reset an componentName.

Link copied to clipboard

Resolve the mime type list.

Link copied to clipboard
fun Context.sendBroadcast(packageName: String = "", receiverPermission: String? = null, options: Bundle? = null, intent: Intent.() -> Unit = {})

Send a broadcast.

Link copied to clipboard
@RequiresApi(value = 26)
inline fun <T : Service> Context.startForegroundService(intent: Intent.() -> Unit = {}): ComponentName?

Start a foreground Service instance T.

@RequiresApi(value = 26)
inline fun Context.startForegroundService(packageName: String, serviceClass: String, intent: Intent.() -> Unit = {}): ComponentName?

Start a foreground Service using ComponentName.

Link copied to clipboard

Start a foreground Service

@RequiresApi(value = 26)
inline fun <T : Service> Context.startForegroundServiceOrElse(intent: Intent.() -> Unit = {}): Boolean

Start a foreground Service instance T.

@RequiresApi(value = 26)
inline fun Context.startForegroundServiceOrElse(packageName: String, serviceClass: String, intent: Intent.() -> Unit = {}): Boolean

Start a foreground Service using ComponentName.

Link copied to clipboard
inline fun <T : Service> Context.startService(intent: Intent.() -> Unit = {}): ComponentName?

Start a Service instance T.

inline fun Context.startService(packageName: String, serviceClass: String, intent: Intent.() -> Unit = {}): ComponentName?

Start a Service using ComponentName.

Link copied to clipboard

Start a Service

inline fun <T : Service> Context.startServiceOrElse(intent: Intent.() -> Unit = {}): Boolean

Start a Service instance T.

inline fun Context.startServiceOrElse(packageName: String, serviceClass: String, intent: Intent.() -> Unit = {}): Boolean

Start a Service using ComponentName.