Package-level declarations

Types

Link copied to clipboard
Helper for accessing features in android.content.ContentProvider in a backwards compatible fashion.
Link copied to clipboard
Helper for accessing features in ContentResolver in a backwards compatible fashion.
Link copied to clipboard
open class ContextCompat
Helper for accessing features in Context.
Link copied to clipboard
FileProvider is a special subclass of ContentProvider that facilitates secure sharing of files associated with an app by creating a content://Uri for a file instead of a file:///Uri.
Link copied to clipboard
Helper for accessing features in Intent.
Link copied to clipboard
open class IntentSanitizer
This class is used to make a sanitized copy of an Intent.
Link copied to clipboard
An identifier for an unique state (locus) in the application.
Link copied to clipboard
Provides utility methods for matching MIME type filters used in ContentProvider.
Link copied to clipboard

Interface for components that can dispatch calls from ComponentCallbacks.onConfigurationChanged.

Link copied to clipboard

Interface for components that can dispatch calls from ComponentCallbacks2.onTrimMemory.

Link copied to clipboard
Helper for accessing features in PackageManager.
Link copied to clipboard
This class provides permission check APIs that verify both the permission and the associated app op for this permission if such is defined.
Link copied to clipboard
Link copied to clipboard
Wrapper class for {IUnusedAppRestrictionsBackportCallback}.
Link copied to clipboard
Wrapper class for IUnusedAppRestrictionsBackportService.
Link copied to clipboard
Shared constants related to Unused App Restrictions (e.g.
Link copied to clipboard
open class UriMatcherCompat
Helper for accessing UriMatcher to create Uri Predicate.

Functions

Link copied to clipboard

Returns a new ContentValues with the given key/value pairs as elements.

Link copied to clipboard
inline fun SharedPreferences.edit(commit: Boolean = false, action: SharedPreferences.Editor.() -> Unit)

Allows editing of this preference instance with a call to apply or commit to persist the changes. Default behaviour is apply.

Link copied to clipboard
inline fun <T : Any> Context.getSystemService(): T?

Return the handle to a system-level service by class.

Link copied to clipboard
inline fun Context.withStyledAttributes(@StyleRes resourceId: Int, attrs: IntArray, block: TypedArray.() -> Unit)

Executes block on a TypedArray receiver. The TypedArray holds the values defined by the style resource resourceId which are listed in attrs.

inline fun Context.withStyledAttributes(set: AttributeSet? = null, attrs: IntArray, @AttrRes defStyleAttr: Int = 0, @StyleRes defStyleRes: Int = 0, block: TypedArray.() -> Unit)

Executes block on a TypedArray receiver. The TypedArray holds the attribute values in set that are listed in attrs. In addition, if the given AttributeSet specifies a style class (through the style attribute), that style will be applied on top of the base attributes it defines.