androidx.core.os
Interfaces
OnCancelListener |
Listens for cancellation. |
ParcelableCompatCreatorCallbacks |
Callbacks a |
Classes
BuildCompat |
This class contains additional platform version checking methods for targeting pre-release versions of Android. |
CancellationSignal |
Static library support version of the framework's |
ConfigurationCompat |
Helper class which allows access to properties of |
EnvironmentCompat |
Helper for accessing features in |
HandlerCompat |
Helper for accessing features in |
HandlerExecutor |
An adapter |
LocaleListCompat |
Helper for accessing features in |
MessageCompat |
Helper for accessing features in |
ParcelableCompat |
Helper for accessing features in |
ParcelCompat |
Helper for accessing features in |
ProcessCompat |
Helper for accessing features in |
TraceCompat |
Writes trace events to the system trace buffer. |
UserManagerCompat |
Helper for accessing features in |
Exceptions
OperationCanceledException |
An exception type that is thrown when an operation in progress is canceled. |
Top-level functions summary
Bundle |
Returns a new Bundle with the given key/value pairs as elements. |
PersistableBundle |
persistableBundleOf(vararg pairs: Pair<String, Any?>) Returns a new PersistableBundle with the given key/value pairs as elements. |
T |
Wrap the specified block in calls to Trace.beginSection (with the supplied sectionName) and Trace.endSection. |
Extension functions summary
For android.os.Handler | |
Runnable |
Handler.postAtTime(uptimeMillis: Long, token: Any? = null, crossinline action: () -> Unit) Version of Handler.postAtTime which re-orders the parameters, allowing the action to be placed outside of parentheses. |
Runnable |
Handler.postDelayed(delayInMillis: Long, token: Any? = null, crossinline action: () -> Unit) Version of Handler.postDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses. |
Top-level functions
bundleOf
fun bundleOf(vararg pairs: Pair<String, Any?>): Bundle
Returns a new Bundle with the given key/value pairs as elements.
Exceptions | |
---|---|
IllegalArgumentException |
When a value is not a supported type of Bundle. |
persistableBundleOf
@RequiresApi(21) fun persistableBundleOf(vararg pairs: Pair<String, Any?>): PersistableBundle
Returns a new PersistableBundle with the given key/value pairs as elements.
Exceptions | |
---|---|
IllegalArgumentException |
When a value is not a supported type of PersistableBundle. |
trace
inline fun <T>trace(
sectionName: String,
block: () -> T
): T
Deprecated.
Wrap the specified block in calls to Trace.beginSection (with the supplied sectionName) and Trace.endSection.