# android.support.v4.os

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

# android.support.v4.os

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Interfaces

|------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [CancellationSignal.OnCancelListener](https://developer.android.com/reference/android/support/v4/os/CancellationSignal.OnCancelListener) | Listens for cancellation.                                                                                                                                                               |
| [ParcelableCompatCreatorCallbacks](https://developer.android.com/reference/android/support/v4/os/ParcelableCompatCreatorCallbacks)\<T\>  | *This interface was deprecated in API level 26.1.0. Use[Parcelable.ClassLoaderCreator](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator.html)directly.* |

## Classes

|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BuildCompat](https://developer.android.com/reference/android/support/v4/os/BuildCompat)                 | This class contains additional platform version checking methods for targeting pre-release versions of Android.                                                                     |
| [CancellationSignal](https://developer.android.com/reference/android/support/v4/os/CancellationSignal)   | Static library support version of the framework's[CancellationSignal](https://developer.android.com/reference/android/os/CancellationSignal.html).                                  |
| [ConfigurationCompat](https://developer.android.com/reference/android/support/v4/os/ConfigurationCompat) | Helper class which allows access to properties of[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)in a backward compatible fashion.   |
| [EnvironmentCompat](https://developer.android.com/reference/android/support/v4/os/EnvironmentCompat)     | Helper for accessing features in[Environment](https://developer.android.com/reference/android/os/Environment.html).                                                                 |
| [LocaleListCompat](https://developer.android.com/reference/android/support/v4/os/LocaleListCompat)       | Helper for accessing features in[LocaleList](https://developer.android.com/reference/android/os/LocaleList.html).                                                                   |
| [ParcelableCompat](https://developer.android.com/reference/android/support/v4/os/ParcelableCompat)       | *This class was deprecated in API level 26.1.0. Use[Parcelable.ClassLoaderCreator](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator.html)directly.* |
| [TraceCompat](https://developer.android.com/reference/android/support/v4/os/TraceCompat)                 | Writes trace events to the system trace buffer.                                                                                                                                     |
| [UserManagerCompat](https://developer.android.com/reference/android/support/v4/os/UserManagerCompat)     | Helper for accessing features in[UserManager](https://developer.android.com/reference/android/os/UserManager.html)in a backwards compatible fashion.                                |

## Exceptions

|------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [OperationCanceledException](https://developer.android.com/reference/android/support/v4/os/OperationCanceledException) | An exception type that is thrown when an operation in progress is canceled. |

-

  ## Interfaces

  - [CancellationSignal.OnCancelListener](https://developer.android.com/reference/android/support/v4/os/CancellationSignal.OnCancelListener)
  - [ParcelableCompatCreatorCallbacks](https://developer.android.com/reference/android/support/v4/os/ParcelableCompatCreatorCallbacks)
-

  ## Classes

  - [BuildCompat](https://developer.android.com/reference/android/support/v4/os/BuildCompat)
  - [CancellationSignal](https://developer.android.com/reference/android/support/v4/os/CancellationSignal)
  - [ConfigurationCompat](https://developer.android.com/reference/android/support/v4/os/ConfigurationCompat)
  - [EnvironmentCompat](https://developer.android.com/reference/android/support/v4/os/EnvironmentCompat)
  - [LocaleListCompat](https://developer.android.com/reference/android/support/v4/os/LocaleListCompat)
  - [ParcelableCompat](https://developer.android.com/reference/android/support/v4/os/ParcelableCompat)
  - [TraceCompat](https://developer.android.com/reference/android/support/v4/os/TraceCompat)
  - [UserManagerCompat](https://developer.android.com/reference/android/support/v4/os/UserManagerCompat)
-

  ## Exceptions

  - [OperationCanceledException](https://developer.android.com/reference/android/support/v4/os/OperationCanceledException)