# MediaBrowserServiceCompat

Artifact: [androidx.media:media](https://developer.android.com/jetpack/androidx/releases/media) [View Source](https://cs.android.com/search?q=file:androidx/media/MediaBrowserServiceCompat.java+class:androidx.media.MediaBrowserServiceCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

*** ** * ** ***


```
abstract class MediaBrowserServiceCompat : Service
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||||
| ↳ | [android.content.Context](https://developer.android.com/reference/android/content/Context.html) ||||
|   | ↳ | [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) |||
|   |   | ↳ | [android.app.Service](https://developer.android.com/reference/android/app/Service.html) ||
|   |   |   | ↳ | [androidx.media.MediaBrowserServiceCompat](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> androidx.media is deprecated. Please migrate to [androidx.media3](https://developer.android.com/media/media3).

Base class for media browse services.

Media browse services enable applications to browse media content provided by an application and ask the application to start playing it. They may also be used to control content that is already playing by way of a `https://developer.android.com/reference/kotlin/android/support/v4/media/session/MediaSessionCompat`. To extend this class, you must declare the service in your manifest file with an intent filter with the `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#SERVICE_INTERFACE()` action.

For example:

```kotlin
<service android:name=".MyMediaBrowserServiceCompat"
         android:label="@string/service_name" >
    <intent-filter>
        <action android:name="android.media.browse.MediaBrowserService" />
    </intent-filter>
</service>
```

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot` **This class is deprecated.** androidx.media is deprecated. <br /> |
| `class https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<T>` **This class is deprecated.** androidx.media is deprecated. <br /> |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#SERVICE_INTERFACE() = "android.media.browse.MediaBrowserService"` **This property is deprecated.** Deprecated in Java |

| ### Public constructors |
|---|
| `[MediaBrowserServiceCompat](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#MediaBrowserServiceCompat())()` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[dump](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#dump(java.io.FileDescriptor,java.io.PrintWriter,java.lang.String[]))(fd: https://developer.android.com/reference/java/io/FileDescriptor.html!, writer: https://developer.android.com/reference/java/io/PrintWriter.html!, args: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/os/Bundle.html!` | `[getBrowserRootHints](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#getBrowserRootHints())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media/MediaSessionManager.RemoteUserInfo` | `[getCurrentBrowserInfo](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#getCurrentBrowserInfo())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/android/support/v4/media/session/MediaSessionCompat.Token?` | `[getSessionToken](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#getSessionToken())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifyChildrenChanged](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#notifyChildrenChanged(java.lang.String))(parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifyChildrenChanged](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#notifyChildrenChanged(java.lang.String,android.os.Bundle))(parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, options: https://developer.android.com/reference/android/os/Bundle.html)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/os/IBinder.html!` | `[onBind](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onBind(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onCreate](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onCreate())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onCustomAction](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onCustomAction(java.lang.String,android.os.Bundle,androidx.media.MediaBrowserServiceCompat.Result<android.os.Bundle>))( action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, extras: https://developer.android.com/reference/android/os/Bundle.html!, result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<https://developer.android.com/reference/android/os/Bundle.html!> )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/CallSuper @https://developer.android.com/reference/kotlin/androidx/annotation/MainThread [onDestroy](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onDestroy())()` **This function is deprecated.** Deprecated in Java |
| `abstract https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot?` | `[onGetRoot](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onGetRoot(java.lang.String,int,android.os.Bundle))(clientPackageName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, clientUid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, rootHints: https://developer.android.com/reference/android/os/Bundle.html?)` **This function is deprecated.** Deprecated in Java |
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onLoadChildren](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadChildren(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>))( parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!>!> )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onLoadChildren](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadChildren(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>,android.os.Bundle))( parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!>!>, options: https://developer.android.com/reference/android/os/Bundle.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onLoadItem](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadItem(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<android.support.v4.media.MediaBrowserCompat.MediaItem>))( itemId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!> )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onSearch](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onSearch(java.lang.String,android.os.Bundle,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>))( query: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, extras: https://developer.android.com/reference/android/os/Bundle.html!, result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!>!> )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSessionToken](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token))(token: https://developer.android.com/reference/kotlin/android/support/v4/media/session/MediaSessionCompat.Token!)` **This function is deprecated.** Deprecated in Java |

### Inherited Constants

From [android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2.html) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_BACKGROUND = 40`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_COMPLETE = 80`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_MODERATE = 60`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL = 15`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW = 10`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE = 5`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN = 20`

**This property is deprecated.** Deprecated in Java
From [android.content.Context](https://developer.android.com/reference/android/content/Context.html) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#ACCESSIBILITY_SERVICE = "accessibility"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#ACCOUNT_SERVICE = "account"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#ACTIVITY_SERVICE = "activity"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#ADVANCED_PROTECTION_SERVICE = "advanced_protection"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#ALARM_SERVICE = "alarm"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#APPWIDGET_SERVICE = "appwidget"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#APP_FUNCTION_SERVICE = "app_function"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#APP_OPS_SERVICE = "appops"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#APP_SEARCH_SERVICE = "app_search"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#AUDIO_SERVICE = "audio"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#AUTOFILL_SERVICE = "autofill"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#BATTERY_SERVICE = "batterymanager"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_ABOVE_CLIENT = 8`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_ADJUST_WITH_ACTIVITY = 128`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_ALLOW_ACTIVITY_STARTS = 512`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_ALLOW_OOM_MANAGEMENT = 16`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_AUTO_CREATE = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_DEBUG_UNBIND = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_EXTERNAL_SERVICE = -2147483648`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_EXTERNAL_SERVICE_LONG = 4611686018427387904`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_IMPORTANT = 64`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_INCLUDE_CAPABILITIES = 4096`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_NOT_FOREGROUND = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_NOT_PERCEPTIBLE = 256`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_PACKAGE_ISOLATED_PROCESS = 16384`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_SHARED_ISOLATED_PROCESS = 8192`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#BIND_WAIVE_PRIORITY = 32`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#BIOMETRIC_SERVICE = "biometric"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#BLOB_STORE_SERVICE = "blob_store"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#BLUETOOTH_SERVICE = "bluetooth"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#BUGREPORT_SERVICE = "bugreport"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CAMERA_SERVICE = "camera"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CAPTIONING_SERVICE = "captioning"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CARRIER_CONFIG_SERVICE = "carrier_config"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CHOOSER_SERVICE = "chooser"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CLIPBOARD_SERVICE = "clipboard"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#COMPANION_DEVICE_SERVICE = "companiondevice"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CONNECTIVITY_DIAGNOSTICS_SERVICE = "connectivity_diagnostics"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CONNECTIVITY_SERVICE = "connectivity"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CONSUMER_IR_SERVICE = "consumer_ir"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CONTACT_KEYS_SERVICE = "contact_keys"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#CONTEXT_IGNORE_SECURITY = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#CONTEXT_INCLUDE_CODE = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#CONTEXT_RESTRICTED = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CREDENTIAL_SERVICE = "credential"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#CROSS_PROFILE_APPS_SERVICE = "crossprofileapps"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#DEVICE_ID_DEFAULT = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#DEVICE_ID_INVALID = -1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#DEVICE_LOCK_SERVICE = "device_lock"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#DEVICE_POLICY_SERVICE = "device_policy"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#DISPLAY_HASH_SERVICE = "display_hash"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#DISPLAY_SERVICE = "display"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#DOMAIN_VERIFICATION_SERVICE = "domain_verification"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#DOWNLOAD_SERVICE = "download"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#DROPBOX_SERVICE = "dropbox"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#EUICC_SERVICE = "euicc"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#FILE_INTEGRITY_SERVICE = "file_integrity"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#FILE_SERVICE = "file"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#GAME_SERVICE = "game"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#GRAMMATICAL_INFLECTION_SERVICE = "grammatical_inflection"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#HARDWARE_PROPERTIES_SERVICE = "hardware_properties"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#HEALTHCONNECT_SERVICE = "healthconnect"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#INPUT_METHOD_SERVICE = "input_method"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#INPUT_SERVICE = "input"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#IPSEC_SERVICE = "ipsec"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#JOB_SCHEDULER_SERVICE = "jobscheduler"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#KEYGUARD_SERVICE = "keyguard"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#KEYSTORE_SERVICE = "keystore"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#LAUNCHER_APPS_SERVICE = "launcherapps"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#LAYOUT_INFLATER_SERVICE = "layout_inflater"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#LOCALE_SERVICE = "locale"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#LOCATION_SERVICE = "location"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#MEDIA_COMMUNICATION_SERVICE = "media_communication"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#MEDIA_METRICS_SERVICE = "media_metrics"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#MEDIA_PROJECTION_SERVICE = "media_projection"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#MEDIA_QUALITY_SERVICE = "media_quality"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#MEDIA_ROUTER_SERVICE = "media_router"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#MEDIA_SESSION_SERVICE = "media_session"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#MIDI_SERVICE = "midi"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#MODE_APPEND = 32768`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#MODE_ENABLE_WRITE_AHEAD_LOGGING = 8`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#MODE_MULTI_PROCESS = 4`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#MODE_NO_LOCALIZED_COLLATORS = 16`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#MODE_PRIVATE = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#MODE_WORLD_READABLE = 1`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#MODE_WORLD_WRITEABLE = 2`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#NETWORK_STATS_SERVICE = "netstats"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#NFC_SERVICE = "nfc"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#NOTIFICATION_SERVICE = "notification"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#NPU_SERVICE = "npu"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#NSD_SERVICE = "servicediscovery"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#OVERLAY_SERVICE = "overlay"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#PCC_SANDBOX_SERVICE = "pcc_sandbox"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#PEOPLE_SERVICE = "people"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#PERFORMANCE_HINT_SERVICE = "performance_hint"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#PERSISTENT_DATA_BLOCK_SERVICE = "persistent_data_block"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#POWER_SERVICE = "power"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#PRINT_SERVICE = "print"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#PROFILING_SERVICE = "profiling"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#RECEIVER_EXPORTED = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#RECEIVER_NOT_EXPORTED = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/Context.html#RECEIVER_VISIBLE_TO_INSTANT_APPS = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#RESTRICTIONS_SERVICE = "restrictions"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#ROLE_SERVICE = "role"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#SATELLITE_SERVICE = "satellite"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#SEARCH_SERVICE = "search"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#SECURITY_STATE_SERVICE = "security_state"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#SENSOR_SERVICE = "sensor"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#SERIAL_SERVICE = "serial"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#SHORTCUT_SERVICE = "shortcut"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#STATUS_BAR_SERVICE = "statusbar"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#STORAGE_SERVICE = "storage"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#STORAGE_STATS_SERVICE = "storagestats"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#SYSTEM_HEALTH_SERVICE = "systemhealth"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TELECOM_SERVICE = "telecom"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_IMS_SERVICE = "telephony_ims"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_PHONE_NUMBER_SERVICE = "telephony_phone_number"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_SERVICE = "phone"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TELEPHONY_SUBSCRIPTION_SERVICE = "telephony_subscription_service"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TETHERING_SERVICE = "tethering"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TEXT_CLASSIFICATION_SERVICE = "textclassification"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TEXT_SERVICES_MANAGER_SERVICE = "textservices"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TV_AD_SERVICE = "tv_ad"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TV_INPUT_SERVICE = "tv_input"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#TV_INTERACTIVE_APP_SERVICE = "tv_interactive_app"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#UI_MODE_SERVICE = "uimode"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#USAGE_STATS_SERVICE = "usagestats"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#USB_SERVICE = "usb"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#USER_SERVICE = "user"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#VIBRATOR_MANAGER_SERVICE = "vibrator_manager"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#VIBRATOR_SERVICE = "vibrator"`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#VIRTUAL_DEVICE_SERVICE = "virtualdevice"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#VPN_MANAGEMENT_SERVICE = "vpn_management"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#WALLPAPER_SERVICE = "wallpaper"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#WEB_APP_SERVICE = "web_app"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#WIFI_AWARE_SERVICE = "wifiaware"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#WIFI_P2P_SERVICE = "wifip2p"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#WIFI_RTT_RANGING_SERVICE = "wifirtt"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#WIFI_SERVICE = "wifi"`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/content/Context.html#WINDOW_SERVICE = "window"`

**This property is deprecated.** Deprecated in Java
From [android.app.Service](https://developer.android.com/reference/android/app/Service.html) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#START_CONTINUATION_MASK = 15`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#START_FLAG_REDELIVERY = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#START_FLAG_RETRY = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#START_NOT_STICKY = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#START_REDELIVER_INTENT = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#START_STICKY = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#START_STICKY_COMPATIBILITY = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#STOP_FOREGROUND_DETACH = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#STOP_FOREGROUND_LEGACY = 0`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#STOP_FOREGROUND_REMOVE = 1`

**This property is deprecated.** Deprecated in Java

### Inherited functions

From [android.content.Context](https://developer.android.com/reference/android/content/Context.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getColor](https://developer.android.com/reference/android/content/Context.html#getColor(int))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/res/ColorStateList.html!` `[getColorStateList](https://developer.android.com/reference/android/content/Context.html#getColorStateList(int))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/graphics/drawable/Drawable.html!` `[getDrawable](https://developer.android.com/reference/android/content/Context.html#getDrawable(int))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getString](https://developer.android.com/reference/android/content/Context.html#getString(int))(resId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`T!` `<T> [getSystemService](https://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.Class&lt;T&gt;))(serviceClass: https://developer.android.com/reference/java/lang/Class.html<T!>!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html!` `[getText](https://developer.android.com/reference/android/content/Context.html#getText(int))(resId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.BindServiceFlags.html!` `[getUpdateableFlags](https://developer.android.com/reference/android/content/Context.html#getUpdateableFlags())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/res/TypedArray.html!` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, int[]))(set: https://developer.android.com/reference/android/util/AttributeSet.html!, attrs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[revokeSelfPermissionOnKill](https://developer.android.com/reference/android/content/Context.html#revokeSelfPermissionOnKill(java.lang.String))(permName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcastWithMultiplePermissions](https://developer.android.com/reference/android/content/Context.html#sendBroadcastWithMultiplePermissions(android.content.Intent, java.lang.String[]))(
intent: https://developer.android.com/reference/android/content/Intent.html!,
receiverPermissions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!
)`

**This function is deprecated.** Deprecated in Java
From [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindIsolatedService](https://developer.android.com/reference/android/content/ContextWrapper.html#bindIsolatedService(android.content.Intent, int, java.lang.String, java.util.concurrent.Executor, android.content.ServiceConnection))(
service: https://developer.android.com/reference/android/content/Intent.html!,
flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
instanceName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
executor: https://developer.android.com/reference/java/util/concurrent/Executor.html!,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.Context.BindServiceFlags, java.util.concurrent.Executor, android.content.ServiceConnection))(
service: https://developer.android.com/reference/android/content/Intent.html!,
flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html!,
executor: https://developer.android.com/reference/java/util/concurrent/Executor.html!,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindServiceAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, android.content.Context.BindServiceFlags, android.os.UserHandle))(
service: https://developer.android.com/reference/android/content/Intent.html!,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html!,
flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html!,
user: https://developer.android.com/reference/android/os/UserHandle.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingOrSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfPermission(java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermission(android.net.Uri, int))(uri: https://developer.android.com/reference/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` `[checkCallingOrSelfUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermissions(java.util.List&lt;android.net.Uri&gt;, int))(
uris: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/net/Uri.html!>!,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission(java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermission(android.net.Uri, int))(uri: https://developer.android.com/reference/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` `[checkCallingUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermissions(java.util.List&lt;android.net.Uri&gt;, int))(uris: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/net/Uri.html!>!, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkContentUriPermissionFull](https://developer.android.com/reference/android/content/ContextWrapper.html#checkContentUriPermissionFull(android.net.Uri, int, int, int))(uri: https://developer.android.com/reference/android/net/Uri.html!, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkPermission(java.lang.String, int, int))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkSelfPermission(java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, int, int, int))(uri: https://developer.android.com/reference/android/net/Uri.html!, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` `[checkUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermissions(java.util.List&lt;android.net.Uri&gt;, int, int, int))(
uris: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/net/Uri.html!>!,
pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[clearWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#clearWallpaper())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/content/Context.html!` `[createAttributionContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createAttributionContext(java.lang.String))(attributionTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createConfigurationContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createConfigurationContext(android.content.res.Configuration))(overrideConfiguration: https://developer.android.com/reference/android/content/res/Configuration.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createContext(android.content.ContextParams))(contextParams: https://developer.android.com/reference/android/content/ContextParams.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createContextForSplit](https://developer.android.com/reference/android/content/ContextWrapper.html#createContextForSplit(java.lang.String))(splitName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createDeviceContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceContext(int))(deviceId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createDeviceProtectedStorageContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceProtectedStorageContext())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createDisplayContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createDisplayContext(android.view.Display))(display: https://developer.android.com/reference/android/view/Display.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createPackageContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createPackageContext(java.lang.String, int))(packageName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[createWindowContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createWindowContext(android.view.Display, int, android.os.Bundle))(display: https://developer.android.com/reference/android/view/Display.html!, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, options: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` `[databaseList](https://developer.android.com/reference/android/content/ContextWrapper.html#databaseList())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[deleteDatabase](https://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[deleteFile](https://developer.android.com/reference/android/content/ContextWrapper.html#deleteFile(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[deleteSharedPreferences](https://developer.android.com/reference/android/content/ContextWrapper.html#deleteSharedPreferences(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingOrSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfPermission(java.lang.String, java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.String))(
uri: https://developer.android.com/reference/android/net/Uri.html!,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingPermission(java.lang.String, java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingUriPermission(android.net.Uri, int, java.lang.String))(uri: https://developer.android.com/reference/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforcePermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforcePermission(java.lang.String, int, int, java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, int, int, int, java.lang.String))(
uri: https://developer.android.com/reference/android/net/Uri.html!,
pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` `[fileList](https://developer.android.com/reference/android/content/ContextWrapper.html#fileList())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[getApplicationContext](https://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationContext())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/pm/ApplicationInfo.html!` `[getApplicationInfo](https://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationInfo())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/res/AssetManager.html!` `[getAssets](https://developer.android.com/reference/android/content/ContextWrapper.html#getAssets())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/AttributionSource.html!` `[getAttributionSource](https://developer.android.com/reference/android/content/ContextWrapper.html#getAttributionSource())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getAttributionTag](https://developer.android.com/reference/android/content/ContextWrapper.html#getAttributionTag())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Context.html!` `[getBaseContext](https://developer.android.com/reference/android/content/ContextWrapper.html#getBaseContext())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getCacheDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getCacheDir())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/lang/ClassLoader.html!` `[getClassLoader](https://developer.android.com/reference/android/content/ContextWrapper.html#getClassLoader())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getCodeCacheDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getCodeCacheDir())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/ContentResolver.html!` `[getContentResolver](https://developer.android.com/reference/android/content/ContextWrapper.html#getContentResolver())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getDataDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getDataDir())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getDatabasePath](https://developer.android.com/reference/android/content/ContextWrapper.html#getDatabasePath(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getDeviceId](https://developer.android.com/reference/android/content/ContextWrapper.html#getDeviceId())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getDir(java.lang.String, int))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/view/Display.html!` `[getDisplay](https://developer.android.com/reference/android/content/ContextWrapper.html#getDisplay())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getExternalCacheDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalCacheDir())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html!>!` `[getExternalCacheDirs](https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalCacheDirs())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getExternalFilesDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDir(java.lang.String))(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html!>!` `[getExternalFilesDirs](https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDirs(java.lang.String))(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html!>!` `[getExternalMediaDirs](https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalMediaDirs())()`

**This function is deprecated.**
`https://developer.android.com/reference/java/io/File.html!` `[getFileStreamPath](https://developer.android.com/reference/android/content/ContextWrapper.html#getFileStreamPath(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getFilesDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getFilesDir())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/util/concurrent/Executor.html!` `[getMainExecutor](https://developer.android.com/reference/android/content/ContextWrapper.html#getMainExecutor())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/os/Looper.html!` `[getMainLooper](https://developer.android.com/reference/android/content/ContextWrapper.html#getMainLooper())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getNoBackupFilesDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getNoBackupFilesDir())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/File.html!` `[getObbDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getObbDir())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html!>!` `[getObbDirs](https://developer.android.com/reference/android/content/ContextWrapper.html#getObbDirs())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getOpPackageName](https://developer.android.com/reference/android/content/ContextWrapper.html#getOpPackageName())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getPackageCodePath](https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageCodePath())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/pm/PackageManager.html!` `[getPackageManager](https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageManager())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getPackageName](https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageName())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getPackageResourcePath](https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageResourcePath())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/ContextParams.html!` `[getParams](https://developer.android.com/reference/android/content/ContextWrapper.html#getParams())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/res/Resources.html!` `[getResources](https://developer.android.com/reference/android/content/ContextWrapper.html#getResources())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/SharedPreferences.html!` `[getSharedPreferences](https://developer.android.com/reference/android/content/ContextWrapper.html#getSharedPreferences(java.lang.String, int))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` `[getSystemService](https://developer.android.com/reference/android/content/ContextWrapper.html#getSystemService(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getSystemServiceName](https://developer.android.com/reference/android/content/ContextWrapper.html#getSystemServiceName(java.lang.Class&lt;?&gt;))(serviceClass: https://developer.android.com/reference/java/lang/Class.html<*>!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/res/Resources.Theme.html!` `[getTheme](https://developer.android.com/reference/android/content/ContextWrapper.html#getTheme())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/graphics/drawable/Drawable.html!` `[getWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaper())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getWallpaperDesiredMinimumHeight](https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumHeight())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getWallpaperDesiredMinimumWidth](https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumWidth())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[grantUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#grantUriPermission(java.lang.String, android.net.Uri, int))(toPackage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, uri: https://developer.android.com/reference/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isDeviceProtectedStorage](https://developer.android.com/reference/android/content/ContextWrapper.html#isDeviceProtectedStorage())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isRestricted](https://developer.android.com/reference/android/content/ContextWrapper.html#isRestricted())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isUiContext](https://developer.android.com/reference/android/content/ContextWrapper.html#isUiContext())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[moveDatabaseFrom](https://developer.android.com/reference/android/content/ContextWrapper.html#moveDatabaseFrom(android.content.Context, java.lang.String))(sourceContext: https://developer.android.com/reference/android/content/Context.html!, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[moveSharedPreferencesFrom](https://developer.android.com/reference/android/content/ContextWrapper.html#moveSharedPreferencesFrom(android.content.Context, java.lang.String))(sourceContext: https://developer.android.com/reference/android/content/Context.html!, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/FileInputStream.html!` `[openFileInput](https://developer.android.com/reference/android/content/ContextWrapper.html#openFileInput(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/java/io/FileOutputStream.html!` `[openFileOutput](https://developer.android.com/reference/android/content/ContextWrapper.html#openFileOutput(java.lang.String, int))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html!` `[openOrCreateDatabase](https://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory))(
name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
factory: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html!
)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/graphics/drawable/Drawable.html!` `[peekWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#peekWallpaper())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[rebindService](https://developer.android.com/reference/android/content/ContextWrapper.html#rebindService(android.content.ServiceConnection, android.content.Context.BindServiceFlags))(conn: https://developer.android.com/reference/android/content/ServiceConnection.html!, flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[registerComponentCallbacks](https://developer.android.com/reference/android/content/ContextWrapper.html#registerComponentCallbacks(android.content.ComponentCallbacks))(callback: https://developer.android.com/reference/android/content/ComponentCallbacks.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[registerDeviceIdChangeListener](https://developer.android.com/reference/android/content/ContextWrapper.html#registerDeviceIdChangeListener(java.util.concurrent.Executor, java.util.function.IntConsumer))(executor: https://developer.android.com/reference/java/util/concurrent/Executor.html!, listener: https://developer.android.com/reference/java/util/function/IntConsumer.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/Intent.html!` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter))(receiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html!, filter: https://developer.android.com/reference/android/content/IntentFilter.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[removeStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcast(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[removeStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle))(intent: https://developer.android.com/reference/android/content/Intent.html!, user: https://developer.android.com/reference/android/os/UserHandle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[revokeSelfPermissionsOnKill](https://developer.android.com/reference/android/content/ContextWrapper.html#revokeSelfPermissionsOnKill(java.util.Collection&lt;java.lang.String&gt;))(permissions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-collection/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-collection/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[revokeUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#revokeUriPermission(android.net.Uri, int))(uri: https://developer.android.com/reference/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle))(intent: https://developer.android.com/reference/android/content/Intent.html!, user: https://developer.android.com/reference/android/os/UserHandle.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, int, java.lang.String, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, java.lang.String, android.os.Bundle, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html!,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
receiverAppOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html!,
scheduler: https://developer.android.com/reference/android/os/Handler.html!,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html!,
options: https://developer.android.com/reference/android/os/Bundle.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html!,
user: https://developer.android.com/reference/android/os/UserHandle.html!,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html!,
scheduler: https://developer.android.com/reference/android/os/Handler.html!,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcast(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle))(intent: https://developer.android.com/reference/android/content/Intent.html!, user: https://developer.android.com/reference/android/os/UserHandle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html!,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html!,
scheduler: https://developer.android.com/reference/android/os/Handler.html!,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html!,
user: https://developer.android.com/reference/android/os/UserHandle.html!,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html!,
scheduler: https://developer.android.com/reference/android/os/Handler.html!,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setTheme](https://developer.android.com/reference/android/content/ContextWrapper.html#setTheme(int))(resid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(android.graphics.Bitmap))(bitmap: https://developer.android.com/reference/android/graphics/Bitmap.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivities](https://developer.android.com/reference/android/content/ContextWrapper.html#startActivities(android.content.Intent[]))(intents: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/android/content/Intent.html!>!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivity](https://developer.android.com/reference/android/content/ContextWrapper.html#startActivity(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/ComponentName.html!` `[startForegroundService](https://developer.android.com/reference/android/content/ContextWrapper.html#startForegroundService(android.content.Intent))(service: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[startInstrumentation](https://developer.android.com/reference/android/content/ContextWrapper.html#startInstrumentation(android.content.ComponentName, java.lang.String, android.os.Bundle))(
className: https://developer.android.com/reference/android/content/ComponentName.html!,
profileFile: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
arguments: https://developer.android.com/reference/android/os/Bundle.html!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startIntentSender](https://developer.android.com/reference/android/content/ContextWrapper.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int))(
intent: https://developer.android.com/reference/android/content/IntentSender.html!,
fillInIntent: https://developer.android.com/reference/android/content/Intent.html!,
flagsMask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
flagsValues: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
extraFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/content/ComponentName.html!` `[startService](https://developer.android.com/reference/android/content/ContextWrapper.html#startService(android.content.Intent))(service: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[stopService](https://developer.android.com/reference/android/content/ContextWrapper.html#stopService(android.content.Intent))(name: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unbindService](https://developer.android.com/reference/android/content/ContextWrapper.html#unbindService(android.content.ServiceConnection))(conn: https://developer.android.com/reference/android/content/ServiceConnection.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unregisterComponentCallbacks](https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterComponentCallbacks(android.content.ComponentCallbacks))(callback: https://developer.android.com/reference/android/content/ComponentCallbacks.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unregisterDeviceIdChangeListener](https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterDeviceIdChangeListener(java.util.function.IntConsumer))(listener: https://developer.android.com/reference/java/util/function/IntConsumer.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unregisterReceiver](https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterReceiver(android.content.BroadcastReceiver))(receiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[updateServiceBindings](https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceBindings(java.util.Collection&lt;android.content.Context.UpdateBindingParams&gt;))(
params: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-collection/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-collection/index.html<https://developer.android.com/reference/android/content/Context.UpdateBindingParams.html!>!
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[updateServiceGroup](https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceGroup(android.content.ServiceConnection, int, int))(conn: https://developer.android.com/reference/android/content/ServiceConnection.html!, group: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, importance: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
From [android.app.Service](https://developer.android.com/reference/android/app/Service.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[attachBaseContext](https://developer.android.com/reference/android/app/Service.html#attachBaseContext(android.content.Context))(newBase: https://developer.android.com/reference/android/content/Context.html!)`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/app/Application.html!` `[getApplication](https://developer.android.com/reference/android/app/Service.html#getApplication())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getForegroundServiceType](https://developer.android.com/reference/android/app/Service.html#getForegroundServiceType())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onConfigurationChanged](https://developer.android.com/reference/android/app/Service.html#onConfigurationChanged(android.content.res.Configuration))(newConfig: https://developer.android.com/reference/android/content/res/Configuration.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onLowMemory](https://developer.android.com/reference/android/app/Service.html#onLowMemory())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onRebind](https://developer.android.com/reference/android/app/Service.html#onRebind(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onStart](https://developer.android.com/reference/android/app/Service.html#onStart(android.content.Intent, int))(intent: https://developer.android.com/reference/android/content/Intent.html!, startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[onStartCommand](https://developer.android.com/reference/android/app/Service.html#onStartCommand(android.content.Intent, int, int))(intent: https://developer.android.com/reference/android/content/Intent.html!, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTaskRemoved](https://developer.android.com/reference/android/app/Service.html#onTaskRemoved(android.content.Intent))(rootIntent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTimeout](https://developer.android.com/reference/android/app/Service.html#onTimeout(int))(startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTrimMemory](https://developer.android.com/reference/android/app/Service.html#onTrimMemory(int))(level: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[onUnbind](https://developer.android.com/reference/android/app/Service.html#onUnbind(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startForeground](https://developer.android.com/reference/android/app/Service.html#startForeground(int, android.app.Notification))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, notification: https://developer.android.com/reference/android/app/Notification.html!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[stopForeground](https://developer.android.com/reference/android/app/Service.html#stopForeground(boolean))(removeNotification: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[stopSelf](https://developer.android.com/reference/android/app/Service.html#stopSelf())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[stopSelfResult](https://developer.android.com/reference/android/app/Service.html#stopSelfResult(int))(startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java

## Constants

### SERVICE_INTERFACE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
const val SERVICE_INTERFACE = "android.media.browse.MediaBrowserService": String!
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

The `https://developer.android.com/reference/android/content/Intent.html` that must be declared as handled by the service.

## Public constructors

### MediaBrowserServiceCompat

Added in 1.1.0 Deprecated in 1.8.0

```
[MediaBrowserServiceCompat](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#MediaBrowserServiceCompat())()
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

## Public functions

### dump

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [dump](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#dump(java.io.FileDescriptor,java.io.PrintWriter,java.lang.String[]))(fd: FileDescriptor!, writer: PrintWriter!, args: Array<String!>!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### getBrowserRootHints

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [getBrowserRootHints](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#getBrowserRootHints())(): Bundle!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the root hints sent from the currently connected `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat`. The root hints are service-specific arguments included in an optional bundle sent to the media browser service when connecting and retrieving the root id for browsing, or null if none. The contents of this bundle may affect the information returned when browsing.

Note that this will return null when connected to `https://developer.android.com/reference/android/media/browse/MediaBrowser.html` and running on API 23 or lower.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If this method is called outside of `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadChildren(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>)`, `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadItem(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<android.support.v4.media.MediaBrowserCompat.MediaItem>)` or `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onSearch(java.lang.String,android.os.Bundle,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>)`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot#EXTRA_RECENT()` |   |
| `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot#EXTRA_OFFLINE()` |   |
| `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot#EXTRA_SUGGESTED()` |   |

### getCurrentBrowserInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [getCurrentBrowserInfo](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#getCurrentBrowserInfo())(): MediaSessionManager.RemoteUserInfo
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the browser information who sent the current request.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If this method is called outside of `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onGetRoot(java.lang.String,int,android.os.Bundle)` or `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadChildren(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>)` or `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadItem(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<android.support.v4.media.MediaBrowserCompat.MediaItem>)`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media/MediaSessionManager#isTrustedForMediaControl(androidx.media.MediaSessionManager.RemoteUserInfo)` |   |

### getSessionToken

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [getSessionToken](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#getSessionToken())(): MediaSessionCompat.Token?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the session token, or null if it has not yet been created or if it has been destroyed.

### notifyChildrenChanged

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [notifyChildrenChanged](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#notifyChildrenChanged(java.lang.String))(parentId: String): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Notifies all connected media browsers that the children of the specified parent id have changed in some way. This will cause browsers to fetch subscribed content again.

| Parameters |
|---|---|
| `parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The id of the parent media item whose children changed. |

### notifyChildrenChanged

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [notifyChildrenChanged](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#notifyChildrenChanged(java.lang.String,android.os.Bundle))(parentId: String, options: Bundle): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Notifies all connected media browsers that the children of the specified parent id have changed in some way. This will cause browsers to fetch subscribed content again.

| Parameters |
|---|---|
| `parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The id of the parent media item whose children changed. |
| `options: https://developer.android.com/reference/android/os/Bundle.html` | A bundle of service-specific arguments to send to the media browse. The contents of this bundle may contain the information about the change. |

### onBind

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [onBind](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onBind(android.content.Intent))(intent: Intent!): IBinder!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### onCreate

```
fun [onCreate](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onCreate())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### onCustomAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [onCustomAction](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onCustomAction(java.lang.String,android.os.Bundle,androidx.media.MediaBrowserServiceCompat.Result<android.os.Bundle>))(
    action: String,
    extras: Bundle!,
    result: MediaBrowserServiceCompat.Result<Bundle!>
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Called to request a custom action to this service.

Implementations must call either `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` or `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendError(android.os.Bundle)`. If the requested custom action will be an expensive operation `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#detach()` may be called before returning from this function, and then the service can send the result later when the custom action is completed. Implementation can also call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendProgressUpdate(android.os.Bundle)` to send an interim update to the requester.

If the requested custom action is not supported by this service, call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendError(android.os.Bundle)`. The default implementation will invoke `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendError(android.os.Bundle)`.

| Parameters |
|---|---|
| `action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The custom action sent from the media browser. |
| `extras: https://developer.android.com/reference/android/os/Bundle.html!` | The bundle of service-specific arguments sent from the media browser. |
| `result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<https://developer.android.com/reference/android/os/Bundle.html!>` | The `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result` to send the result of the requested custom action. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat#CUSTOM_ACTION_DOWNLOAD()` |   |
| `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat#CUSTOM_ACTION_REMOVE_DOWNLOADED_FILE()` |   |

### onDestroy

```
@CallSuper
@MainThread
fun [onDestroy](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onDestroy())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### onGetRoot

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
abstract fun [onGetRoot](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onGetRoot(java.lang.String,int,android.os.Bundle))(clientPackageName: String, clientUid: Int, rootHints: Bundle?): MediaBrowserServiceCompat.BrowserRoot?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Called to get the root information for browsing by a particular client.

The implementation should verify that the client package has permission to access browse media information before returning the root id; it should return null if the client is not allowed to access this information.

| Parameters |
|---|---|
| `clientPackageName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The package name of the application which is requesting access to browse media. |
| `clientUid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The uid of the application which is requesting access to browse media. |
| `rootHints: https://developer.android.com/reference/android/os/Bundle.html?` | An optional bundle of service-specific arguments to send to the media browse service when connecting and retrieving the root id for browsing, or null if none. The contents of this bundle may affect the information returned when browsing. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot?` | The `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot` for accessing this app's content or null. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot#EXTRA_RECENT()` |   |
| `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot#EXTRA_OFFLINE()` |   |
| `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.BrowserRoot#EXTRA_SUGGESTED()` |   |

### onLoadChildren

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
abstract fun [onLoadChildren](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadChildren(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>))(
    parentId: String,
    result: MediaBrowserServiceCompat.Result<(Mutable)List<MediaBrowserCompat.MediaItem!>!>
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Called to get information about the children of a media item.

Implementations must call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with the list of children. If loading the children will be an expensive operation that should be performed on another thread, `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#detach()` may be called before returning from this function, and then `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` called when the loading is complete.

In case the media item does not have any children, call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with an empty list. When the given `parentId` is invalid, implementations must call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with `null`, which will invoke `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.SubscriptionCallback#onError(java.lang.String)`.

| Parameters |
|---|---|
| `parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The id of the parent media item whose children are to be queried. |
| `result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!>!>` | The Result to send the list of children to. |

### onLoadChildren

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [onLoadChildren](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadChildren(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>,android.os.Bundle))(
    parentId: String,
    result: MediaBrowserServiceCompat.Result<(Mutable)List<MediaBrowserCompat.MediaItem!>!>,
    options: Bundle
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Called to get information about the children of a media item.

Implementations must call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with the list of children. If loading the children will be an expensive operation that should be performed on another thread, `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#detach()` may be called before returning from this function, and then `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` called when the loading is complete.

In case the media item does not have any children, call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with an empty list. When the given `parentId` is invalid, implementations must call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with `null`, which will invoke `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.SubscriptionCallback#onError(java.lang.String)`.

| Parameters |
|---|---|
| `parentId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The id of the parent media item whose children are to be queried. |
| `result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!>!>` | The Result to send the list of children to. |
| `options: https://developer.android.com/reference/android/os/Bundle.html` | A bundle of service-specific arguments sent from the media browse. The information returned through the result should be affected by the contents of this bundle. |

### onLoadItem

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [onLoadItem](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onLoadItem(java.lang.String,androidx.media.MediaBrowserServiceCompat.Result<android.support.v4.media.MediaBrowserCompat.MediaItem>))(
    itemId: String!,
    result: MediaBrowserServiceCompat.Result<MediaBrowserCompat.MediaItem!>
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Called to get information about a specific media item.

Implementations must call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)`. If loading the item will be an expensive operation `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#detach()` may be called before returning from this function, and then `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` called when the item has been loaded.

When the given `itemId` is invalid, implementations must call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with `null`.

The default implementation will invoke `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.ItemCallback#onError(java.lang.String)`.

| Parameters |
|---|---|
| `itemId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The id for the specific `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem`. |
| `result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!>` | The Result to send the item to, or null if the id is invalid. |

### onSearch

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [onSearch](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#onSearch(java.lang.String,android.os.Bundle,androidx.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>))(
    query: String,
    extras: Bundle!,
    result: MediaBrowserServiceCompat.Result<(Mutable)List<MediaBrowserCompat.MediaItem!>!>
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Called to get the search result.

Implementations must call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)`. If the search will be an expensive operation `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#detach()` may be called before returning from this function, and then `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` called when the search has been completed.

In case there are no search results, call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with an empty list. In case there are some errors happened, call `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result#sendResult(T)` with `null`, which will invoke `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.SearchCallback#onError(java.lang.String,android.os.Bundle)`.

The default implementation will invoke `https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.SearchCallback#onError(java.lang.String,android.os.Bundle)`.

| Parameters |
|---|---|
| `query: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The search query sent from the media browser. It contains keywords separated by space. |
| `extras: https://developer.android.com/reference/android/os/Bundle.html!` | The bundle of service-specific arguments sent from the media browser. |
| `result: https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result<(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/support/v4/media/MediaBrowserCompat.MediaItem!>!>` | The `https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat.Result` to send the search result. |

### setSessionToken

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/media#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/media#1.8.0)

```
fun [setSessionToken](https://developer.android.com/reference/kotlin/androidx/media/MediaBrowserServiceCompat#setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token))(token: MediaSessionCompat.Token!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Call to set the media session.

This should be called as soon as possible during the service's startup. It may only be called once.

| Parameters |
|---|---|
| `token: https://developer.android.com/reference/kotlin/android/support/v4/media/session/MediaSessionCompat.Token!` | The token for the service's `https://developer.android.com/reference/kotlin/android/support/v4/media/session/MediaSessionCompat`. |