Package-level declarations

Types

Link copied to clipboard

Workaround for class name changed for ApplicationInfoFlagsWrapper.

Link copied to clipboard

Application info flags wrapper.

Link copied to clipboard

Clip data item's builder.

Link copied to clipboard

Package info flags wrapper.

Properties

Link copied to clipboard

Get clipboard manager.

Link copied to clipboard

Get the long version code of package info (compat).

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 ClipData(label: CharSequence? = null, initiate: ClipDataItemBuilder.() -> Unit): ClipData

Create a clip data.

Link copied to clipboard

Copy to clipboard.

Copy intent to clipboard.

Copy text to clipboard.

fun ClipboardManager.copy(uri: Uri, resolver: ContentResolver? = null, 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
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 componentName is enabled.

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

Determine whether the componentName is enabled or default.

Link copied to clipboard

Get the clip data item list.

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, handleReceive: BroadcastReceiver.(context: Context, intent: Intent) -> Unit)

Register a broadcast receiver.

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

Reset an componentName.

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

Send a broadcast.

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

Start a foreground Service instance T.

@RequiresApi(value = 26)
inline fun Context.startForegroundService(packageName: String, serviceClass: String, initiate: 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(initiate: Intent.() -> Unit = {}): Boolean

Start a foreground Service instance T.

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

Start a foreground Service using ComponentName.

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

Start a Service instance T.

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

Start a Service using ComponentName.

Link copied to clipboard

Start a Service

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

Start a Service instance T.

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

Start a Service using ComponentName.