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
val Context.clipboardManager: <Error class: unknown class>

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

Create a BroadcastReceiver body.

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
fun Dialog.copyToClipboard(text: CharSequence, label: CharSequence? = null): <Error class: unknown class>
fun Context.copyToClipboard(text: CharSequence, label: CharSequence? = null): <Error class: unknown class>
fun View.copyToClipboard(text: CharSequence, label: CharSequence? = null): <Error class: unknown class>?
fun Fragment.copyToClipboard(text: CharSequence, label: CharSequence? = null): <Error class: unknown class>?

Copy 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
fun PackageManager.getInstalledPackages(vararg flags: PackageInfoFlagsWrapper): <Error class: unknown class>

The wrapper of PackageManager's function.

Link copied to clipboard
Link copied to clipboard
fun PackageManager.getPackageInfo(packageName: String, vararg flags: PackageInfoFlagsWrapper): <Error class: unknown class>

The wrapper of PackageManager's function.

Link copied to clipboard
fun PackageManager.getPackageInfoOrNull(packageName: String, vararg flags: PackageInfoFlagsWrapper): <Error class: unknown class>

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
fun PackageManager.hasLaunchActivity(packageName: String): <Error class: unknown class>

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
fun ClipData.listOfItems(): <Error class: unknown class>

Get the clip data item list.

Link copied to clipboard
fun PackageManager.queryLaunchActivitiesForPackage(packageName: String): <Error class: unknown class>

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
fun Context.sendBroadcast(packageName: String = "", vararg action: String, initiate: Intent.() -> Unit = {})
fun Context.sendBroadcast(packageName: String = "", receiverPermission: String? = null, intent: 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
@RequiresApi(value = 26)
fun Context.startForegroundServiceOrElse(intent: Intent): <Error class: unknown class>

Start a foreground Service

@RequiresApi(value = 26)
inline fun <T : Service> Context.startForegroundServiceOrElse(initiate: Intent.() -> Unit = {}): <Error class: unknown class>

Start a foreground Service instance T.

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

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
fun Context.startServiceOrElse(intent: Intent): <Error class: unknown class>

Start a Service

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

Start a Service instance T.

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

Start a Service using ComponentName.