# FirebaseMessagingService


```
class FirebaseMessagingService : Service
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||
| ↳ | [android.content.Context](https://developer.android.com/reference/kotlin/android/content/Context.html) ||||
|   | ↳ | [android.content.ContextWrapper](https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html) |||
|   |   | ↳ | [android.app.Service](https://developer.android.com/reference/kotlin/android/app/Service.html) ||
|   |   |   | ↳ | [com.google.firebase.messaging.FirebaseMessagingService](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService) |

*** ** * ** ***

Base class for receiving messages from Firebase Cloud Messaging.

Extending this class is required to be able to handle downstream messages. It also provides functionality to automatically display notifications.

Override base class methods to handle any events required by the application. All methods are invoked on a background thread, and *may be called when the app is in the background or not open*.

Include the following in the manifest:

```kotlin
<service
    android:name=".YourFirebaseMessagingService"
    android:exported="false">
    <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
</service>
```

To support receiving messages in [direct boot mode](https://developer.android.com/training/articles/direct-boot), add `android:directBootAware="true"` to the `service` declaration. See [Receive FCM messages in direct boot mode](https://firebase.google.com/docs/cloud-messaging/android/receive#receive_fcm_messages_in_direct_boot_mode) for more information.

## Summary

| ### Public constructors |
|---|
| `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#FirebaseMessagingService()()` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onDeletedMessages()()` Called when the Firebase Cloud Messaging server deletes pending messages. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/CallSuper.html https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onDestroy()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onMessageReceived(com.google.firebase.messaging.RemoteMessage)(message: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage)` Called when a message is received. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html [onMessageSent](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onMessageSent(java.lang.String))(msgId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` **This function is deprecated.** This function is actually **decommissioned** along with all of FCM upstream messaging. <br /> |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html [onNewToken](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onNewToken(java.lang.String))(token: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` **This function is deprecated.** Use `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onRegistered(java.lang.String)` instead. <br /> |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onRegistered(java.lang.String)(installationId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Called when the current app instance has been successfully registered with FCM. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html [onSendError](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onSendError(java.lang.String,java.lang.Exception))(msgId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, exception: https://developer.android.com/reference/kotlin/java/lang/Exception.html)` **This function is deprecated.** This function is actually **decommissioned** along with all of FCM upstream messaging. <br /> |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onUnregistered(java.lang.String)(installationId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Called when the current app instance has been successfully unregistered from FCM via a call to `FirebaseMessaging.unregister()`. |

### Inherited Constants

From [android.content.ComponentCallbacks2](https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html) `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html#TRIM_MEMORY_BACKGROUND-- = 40` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html#TRIM_MEMORY_COMPLETE-- = 80` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html#TRIM_MEMORY_MODERATE-- = 60` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL-- = 15` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW-- = 10` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE-- = 5` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN-- = 20` From [android.content.Context](https://developer.android.com/reference/kotlin/android/content/Context.html) `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#ACCESSIBILITY_SERVICE-- = "accessibility"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#ACCOUNT_SERVICE-- = "account"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#ACTIVITY_SERVICE-- = "activity"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#ALARM_SERVICE-- = "alarm"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#APPWIDGET_SERVICE-- = "appwidget"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#APP_OPS_SERVICE-- = "appops"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#APP_SEARCH_SERVICE-- = "app_search"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#AUDIO_SERVICE-- = "audio"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#BATTERY_SERVICE-- = "batterymanager"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_ABOVE_CLIENT-- = 8` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_ADJUST_WITH_ACTIVITY-- = 128` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_ALLOW_ACTIVITY_STARTS-- = 512` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_ALLOW_OOM_MANAGEMENT-- = 16` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_AUTO_CREATE-- = 1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_DEBUG_UNBIND-- = 2` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_EXTERNAL_SERVICE-- = -2147483648` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_EXTERNAL_SERVICE_LONG-- = 4611686018427387904` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_IMPORTANT-- = 64` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_INCLUDE_CAPABILITIES-- = 4096` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_NOT_FOREGROUND-- = 4` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_NOT_PERCEPTIBLE-- = 256` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_SHARED_ISOLATED_PROCESS-- = 8192` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_WAIVE_PRIORITY-- = 32` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#BIOMETRIC_SERVICE-- = "biometric"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#BLOB_STORE_SERVICE-- = "blob_store"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#BLUETOOTH_SERVICE-- = "bluetooth"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#BUGREPORT_SERVICE-- = "bugreport"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CAMERA_SERVICE-- = "camera"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CAPTIONING_SERVICE-- = "captioning"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CARRIER_CONFIG_SERVICE-- = "carrier_config"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CLIPBOARD_SERVICE-- = "clipboard"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#COMPANION_DEVICE_SERVICE-- = "companiondevice"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CONNECTIVITY_DIAGNOSTICS_SERVICE-- = "connectivity_diagnostics"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CONNECTIVITY_SERVICE-- = "connectivity"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CONSUMER_IR_SERVICE-- = "consumer_ir"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#CONTEXT_IGNORE_SECURITY-- = 2` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#CONTEXT_INCLUDE_CODE-- = 1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#CONTEXT_RESTRICTED-- = 4` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CREDENTIAL_SERVICE-- = "credential"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#CROSS_PROFILE_APPS_SERVICE-- = "crossprofileapps"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#DEVICE_ID_DEFAULT-- = 0` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#DEVICE_ID_INVALID-- = -1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#DEVICE_LOCK_SERVICE-- = "device_lock"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#DEVICE_POLICY_SERVICE-- = "device_policy"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#DISPLAY_HASH_SERVICE-- = "display_hash"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#DISPLAY_SERVICE-- = "display"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#DOMAIN_VERIFICATION_SERVICE-- = "domain_verification"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#DOWNLOAD_SERVICE-- = "download"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#DROPBOX_SERVICE-- = "dropbox"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#EUICC_SERVICE-- = "euicc"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#FILE_INTEGRITY_SERVICE-- = "file_integrity"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#FINGERPRINT_SERVICE-- = "fingerprint"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#GAME_SERVICE-- = "game"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#GRAMMATICAL_INFLECTION_SERVICE-- = "grammatical_inflection"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#HARDWARE_PROPERTIES_SERVICE-- = "hardware_properties"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#HEALTHCONNECT_SERVICE-- = "healthconnect"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#INPUT_METHOD_SERVICE-- = "input_method"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#INPUT_SERVICE-- = "input"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#IPSEC_SERVICE-- = "ipsec"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#JOB_SCHEDULER_SERVICE-- = "jobscheduler"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#KEYGUARD_SERVICE-- = "keyguard"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#LAUNCHER_APPS_SERVICE-- = "launcherapps"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#LAYOUT_INFLATER_SERVICE-- = "layout_inflater"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#LOCALE_SERVICE-- = "locale"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#LOCATION_SERVICE-- = "location"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#MEDIA_COMMUNICATION_SERVICE-- = "media_communication"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#MEDIA_METRICS_SERVICE-- = "media_metrics"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#MEDIA_PROJECTION_SERVICE-- = "media_projection"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#MEDIA_ROUTER_SERVICE-- = "media_router"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#MEDIA_SESSION_SERVICE-- = "media_session"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#MIDI_SERVICE-- = "midi"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#MODE_APPEND-- = 32768` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#MODE_ENABLE_WRITE_AHEAD_LOGGING-- = 8` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#MODE_MULTI_PROCESS-- = 4`

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

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

**This property is deprecated.**
`const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#NETWORK_STATS_SERVICE-- = "netstats"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#NFC_SERVICE-- = "nfc"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#NOTIFICATION_SERVICE-- = "notification"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#NSD_SERVICE-- = "servicediscovery"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#OVERLAY_SERVICE-- = "overlay"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#PEOPLE_SERVICE-- = "people"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#PERFORMANCE_HINT_SERVICE-- = "performance_hint"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#POWER_SERVICE-- = "power"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#PRINT_SERVICE-- = "print"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#RECEIVER_EXPORTED-- = 2` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#RECEIVER_NOT_EXPORTED-- = 4` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#RECEIVER_VISIBLE_TO_INSTANT_APPS-- = 1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#RESTRICTIONS_SERVICE-- = "restrictions"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#ROLE_SERVICE-- = "role"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#SEARCH_SERVICE-- = "search"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#SENSOR_SERVICE-- = "sensor"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#SHORTCUT_SERVICE-- = "shortcut"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#STATUS_BAR_SERVICE-- = "statusbar"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#STORAGE_SERVICE-- = "storage"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#STORAGE_STATS_SERVICE-- = "storagestats"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#SYSTEM_HEALTH_SERVICE-- = "systemhealth"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TELECOM_SERVICE-- = "telecom"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TELEPHONY_IMS_SERVICE-- = "telephony_ims"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TELEPHONY_SERVICE-- = "phone"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TELEPHONY_SUBSCRIPTION_SERVICE-- = "telephony_subscription_service"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TEXT_CLASSIFICATION_SERVICE-- = "textclassification"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TEXT_SERVICES_MANAGER_SERVICE-- = "textservices"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TV_INPUT_SERVICE-- = "tv_input"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#TV_INTERACTIVE_APP_SERVICE-- = "tv_interactive_app"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#UI_MODE_SERVICE-- = "uimode"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#USAGE_STATS_SERVICE-- = "usagestats"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#USB_SERVICE-- = "usb"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#USER_SERVICE-- = "user"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#VIBRATOR_MANAGER_SERVICE-- = "vibrator_manager"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#VIBRATOR_SERVICE-- = "vibrator"`

**This property is deprecated.**
`const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#VIRTUAL_DEVICE_SERVICE-- = "virtualdevice"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#VPN_MANAGEMENT_SERVICE-- = "vpn_management"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#WALLPAPER_SERVICE-- = "wallpaper"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#WIFI_AWARE_SERVICE-- = "wifiaware"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#WIFI_P2P_SERVICE-- = "wifip2p"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#WIFI_RTT_RANGING_SERVICE-- = "wifirtt"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#WIFI_SERVICE-- = "wifi"` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#WINDOW_SERVICE-- = "window"` From [android.app.Service](https://developer.android.com/reference/kotlin/android/app/Service.html) `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#START_CONTINUATION_MASK-- = 15` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#START_FLAG_REDELIVERY-- = 1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#START_FLAG_RETRY-- = 2` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#START_NOT_STICKY-- = 2` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#START_REDELIVER_INTENT-- = 3` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#START_STICKY-- = 1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#START_STICKY_COMPATIBILITY-- = 0` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#STOP_FOREGROUND_DETACH-- = 2` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#STOP_FOREGROUND_LEGACY-- = 0`

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

### Inherited functions

From [android.content.Context](https://developer.android.com/reference/kotlin/android/content/Context.html) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#getColor-int-(id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/android/content/res/ColorStateList.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#getColorStateList-int-(id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#getDrawable-int-(id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#getString-int-(resId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `T!` `<T> https://developer.android.com/reference/kotlin/android/content/Context.html#getSystemService-java.lang.Class&lt;T&gt;-(serviceClass: https://developer.android.com/reference/kotlin/java/lang/Class.html<T!>!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#getText-int-(resId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/android/content/res/TypedArray.html!` `https://developer.android.com/reference/kotlin/android/content/Context.html#obtainStyledAttributes-int[]-(attrs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#revokeSelfPermissionOnKill-java.lang.String-(permName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/Context.html#sendBroadcastWithMultiplePermissions-android.content.Intent-java.lang.String[]-(
intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!,
receiverPermissions: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!
)` From [android.content.ContextWrapper](https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/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/kotlin/android/content/Intent.html!,
flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
instanceName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!,
executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html!,
conn: https://developer.android.com/reference/kotlin/android/content/ServiceConnection.html!
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#bindService-android.content.Intent-android.content.ServiceConnection-int-(service: https://developer.android.com/reference/kotlin/android/content/Intent.html!, conn: https://developer.android.com/reference/kotlin/android/content/ServiceConnection.html!, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#bindServiceAsUser-android.content.Intent-android.content.ServiceConnection-int-android.os.UserHandle-(
service: https://developer.android.com/reference/kotlin/android/content/Intent.html!,
conn: https://developer.android.com/reference/kotlin/android/content/ServiceConnection.html!,
flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
user: https://developer.android.com/reference/kotlin/android/os/UserHandle.html!
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkCallingOrSelfPermission-java.lang.String-(permission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkCallingOrSelfUriPermission-android.net.Uri-int-(uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkCallingOrSelfUriPermissions-java.util.List&lt;android.net.Uri&gt;-int-(
uris: (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/net/Uri.html!>!,
modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkCallingPermission-java.lang.String-(permission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkCallingUriPermission-android.net.Uri-int-(uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkCallingUriPermissions-java.util.List&lt;android.net.Uri&gt;-int-(uris: (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/net/Uri.html!>!, modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkPermission-java.lang.String-int-int-(permission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, pid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkSelfPermission-java.lang.String-(permission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkUriPermission-android.net.Uri-int-int-int-(uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!, pid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#checkUriPermissions-java.util.List&lt;android.net.Uri&gt;-int-int-int-(
uris: (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/android/net/Uri.html!>!,
pid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#clearWallpaper--()`

**This function is deprecated.**
`https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createAttributionContext-java.lang.String-(attributionTag: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createConfigurationContext-android.content.res.Configuration-(overrideConfiguration: https://developer.android.com/reference/kotlin/android/content/res/Configuration.html!)` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createContext-android.content.ContextParams-(contextParams: https://developer.android.com/reference/kotlin/android/content/ContextParams.html!)` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createContextForSplit-java.lang.String-(splitName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createDeviceContext-int-(deviceId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createDeviceProtectedStorageContext--()` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createDisplayContext-android.view.Display-(display: https://developer.android.com/reference/kotlin/android/view/Display.html!)` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createPackageContext-java.lang.String-int-(packageName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#createWindowContext-int-android.os.Bundle-(type: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, options: https://developer.android.com/reference/kotlin/android/os/Bundle.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#databaseList--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#deleteDatabase-java.lang.String-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#deleteFile-java.lang.String-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#deleteSharedPreferences-java.lang.String-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#enforceCallingOrSelfPermission-java.lang.String-java.lang.String-(permission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#enforceCallingOrSelfUriPermission-android.net.Uri-int-java.lang.String-(
uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!,
modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#enforceCallingPermission-java.lang.String-java.lang.String-(permission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#enforceCallingUriPermission-android.net.Uri-int-java.lang.String-(uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#enforcePermission-java.lang.String-int-int-java.lang.String-(permission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, pid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#enforceUriPermission-android.net.Uri-int-int-int-java.lang.String-(
uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!,
pid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#fileList--()` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getApplicationContext--()` `https://developer.android.com/reference/kotlin/android/content/pm/ApplicationInfo.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getApplicationInfo--()` `https://developer.android.com/reference/kotlin/android/content/res/AssetManager.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getAssets--()` `https://developer.android.com/reference/kotlin/android/content/AttributionSource.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getAttributionSource--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getAttributionTag--()` `https://developer.android.com/reference/kotlin/android/content/Context.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getBaseContext--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getCacheDir--()` `https://developer.android.com/reference/kotlin/java/lang/ClassLoader.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getClassLoader--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getCodeCacheDir--()` `https://developer.android.com/reference/kotlin/android/content/ContentResolver.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getContentResolver--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getDataDir--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getDatabasePath-java.lang.String-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getDeviceId--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getDir-java.lang.String-int-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, mode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/android/view/Display.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getDisplay--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getExternalCacheDir--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/java/io/File.html!>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getExternalCacheDirs--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getExternalFilesDir-java.lang.String-(type: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/java/io/File.html!>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getExternalFilesDirs-java.lang.String-(type: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/java/io/File.html!>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getExternalMediaDirs--()`

**This function is deprecated.**
`https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getFileStreamPath-java.lang.String-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getFilesDir--()` `https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getMainExecutor--()` `https://developer.android.com/reference/kotlin/android/os/Looper.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getMainLooper--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getNoBackupFilesDir--()` `https://developer.android.com/reference/kotlin/java/io/File.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getObbDir--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/java/io/File.html!>!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getObbDirs--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getOpPackageName--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getPackageCodePath--()` `https://developer.android.com/reference/kotlin/android/content/pm/PackageManager.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getPackageManager--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getPackageName--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getPackageResourcePath--()` `https://developer.android.com/reference/kotlin/android/content/ContextParams.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getParams--()` `https://developer.android.com/reference/kotlin/android/content/res/Resources.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getResources--()` `https://developer.android.com/reference/kotlin/android/content/SharedPreferences.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getSharedPreferences-java.lang.String-int-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, mode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getSystemService-java.lang.String-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getSystemServiceName-java.lang.Class&lt;?&gt;-(serviceClass: https://developer.android.com/reference/kotlin/java/lang/Class.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!>!)` `https://developer.android.com/reference/kotlin/android/content/res/Resources.Theme.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getTheme--()` `https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#getWallpaper--()`

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

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

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#grantUriPermission-java.lang.String-android.net.Uri-int-(toPackage: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#isDeviceProtectedStorage--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#isRestricted--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#isUiContext--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#moveDatabaseFrom-android.content.Context-java.lang.String-(sourceContext: https://developer.android.com/reference/kotlin/android/content/Context.html!, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#moveSharedPreferencesFrom-android.content.Context-java.lang.String-(sourceContext: https://developer.android.com/reference/kotlin/android/content/Context.html!, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://developer.android.com/reference/kotlin/java/io/FileInputStream.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#openFileInput-java.lang.String-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://developer.android.com/reference/kotlin/java/io/FileOutputStream.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#openFileOutput-java.lang.String-int-(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, mode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/android/database/sqlite/SQLiteDatabase.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#openOrCreateDatabase-java.lang.String-int-android.database.sqlite.SQLiteDatabase.CursorFactory-(
name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!,
mode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
factory: https://developer.android.com/reference/kotlin/android/database/sqlite/SQLiteDatabase.CursorFactory.html!
)` `https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#peekWallpaper--()`

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#registerComponentCallbacks-android.content.ComponentCallbacks-(callback: https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#registerDeviceIdChangeListener-java.util.concurrent.Executor-java.util.function.IntConsumer-(executor: https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html!, listener: https://developer.android.com/reference/kotlin/java/util/function/IntConsumer.html!)` `https://developer.android.com/reference/kotlin/android/content/Intent.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#registerReceiver-android.content.BroadcastReceiver-android.content.IntentFilter-(receiver: https://developer.android.com/reference/kotlin/android/content/BroadcastReceiver.html!, filter: https://developer.android.com/reference/kotlin/android/content/IntentFilter.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#removeStickyBroadcast-android.content.Intent-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!)`

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

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#revokeSelfPermissionsOnKill-java.util.Collection&lt;java.lang.String&gt;-(permissions: (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#revokeUriPermission-android.net.Uri-int-(uri: https://developer.android.com/reference/kotlin/android/net/Uri.html!, modeFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#sendBroadcast-android.content.Intent-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#sendBroadcastAsUser-android.content.Intent-android.os.UserHandle-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!, user: https://developer.android.com/reference/kotlin/android/os/UserHandle.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#sendOrderedBroadcast-android.content.Intent-java.lang.String-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!, receiverPermission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/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/kotlin/android/content/Intent.html!,
user: https://developer.android.com/reference/kotlin/android/os/UserHandle.html!,
receiverPermission: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!,
resultReceiver: https://developer.android.com/reference/kotlin/android/content/BroadcastReceiver.html!,
scheduler: https://developer.android.com/reference/kotlin/android/os/Handler.html!,
initialCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!,
initialExtras: https://developer.android.com/reference/kotlin/android/os/Bundle.html!
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#sendStickyBroadcast-android.content.Intent-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!)`

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

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/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/kotlin/android/content/Intent.html!,
resultReceiver: https://developer.android.com/reference/kotlin/android/content/BroadcastReceiver.html!,
scheduler: https://developer.android.com/reference/kotlin/android/os/Handler.html!,
initialCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!,
initialExtras: https://developer.android.com/reference/kotlin/android/os/Bundle.html!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/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/kotlin/android/content/Intent.html!,
user: https://developer.android.com/reference/kotlin/android/os/UserHandle.html!,
resultReceiver: https://developer.android.com/reference/kotlin/android/content/BroadcastReceiver.html!,
scheduler: https://developer.android.com/reference/kotlin/android/os/Handler.html!,
initialCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!,
initialExtras: https://developer.android.com/reference/kotlin/android/os/Bundle.html!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#setTheme-int-(resid: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#setWallpaper-android.graphics.Bitmap-(bitmap: https://developer.android.com/reference/kotlin/android/graphics/Bitmap.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#startActivities-android.content.Intent[]-(intents: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/android/content/Intent.html!>!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#startActivity-android.content.Intent-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://developer.android.com/reference/kotlin/android/content/ComponentName.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#startForegroundService-android.content.Intent-(service: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#startInstrumentation-android.content.ComponentName-java.lang.String-android.os.Bundle-(
className: https://developer.android.com/reference/kotlin/android/content/ComponentName.html!,
profileFile: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!,
arguments: https://developer.android.com/reference/kotlin/android/os/Bundle.html!
)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#startIntentSender-android.content.IntentSender-android.content.Intent-int-int-int-(
intent: https://developer.android.com/reference/kotlin/android/content/IntentSender.html!,
fillInIntent: https://developer.android.com/reference/kotlin/android/content/Intent.html!,
flagsMask: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
flagsValues: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html,
extraFlags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html
)` `https://developer.android.com/reference/kotlin/android/content/ComponentName.html!` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#startService-android.content.Intent-(service: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#stopService-android.content.Intent-(name: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#unbindService-android.content.ServiceConnection-(conn: https://developer.android.com/reference/kotlin/android/content/ServiceConnection.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#unregisterComponentCallbacks-android.content.ComponentCallbacks-(callback: https://developer.android.com/reference/kotlin/android/content/ComponentCallbacks.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#unregisterDeviceIdChangeListener-java.util.function.IntConsumer-(listener: https://developer.android.com/reference/kotlin/java/util/function/IntConsumer.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#unregisterReceiver-android.content.BroadcastReceiver-(receiver: https://developer.android.com/reference/kotlin/android/content/BroadcastReceiver.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/content/ContextWrapper.html#updateServiceGroup-android.content.ServiceConnection-int-int-(conn: https://developer.android.com/reference/kotlin/android/content/ServiceConnection.html!, group: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, importance: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` From [android.app.Service](https://developer.android.com/reference/kotlin/android/app/Service.html) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#attachBaseContext-android.content.Context-(newBase: https://developer.android.com/reference/kotlin/android/content/Context.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#dump-java.io.FileDescriptor-java.io.PrintWriter-java.lang.String[]-(fd: https://developer.android.com/reference/kotlin/java/io/FileDescriptor.html!, writer: https://developer.android.com/reference/kotlin/java/io/PrintWriter.html!, args: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!)` `https://developer.android.com/reference/kotlin/android/app/Application.html!` `https://developer.android.com/reference/kotlin/android/app/Service.html#getApplication--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#getForegroundServiceType--()` `abstract https://developer.android.com/reference/kotlin/android/os/IBinder.html!` `https://developer.android.com/reference/kotlin/android/app/Service.html#onBind-android.content.Intent-(p: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onConfigurationChanged-android.content.res.Configuration-(newConfig: https://developer.android.com/reference/kotlin/android/content/res/Configuration.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onCreate--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onDestroy--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onLowMemory--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onRebind-android.content.Intent-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onStart-android.content.Intent-int-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!, startId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onStartCommand-android.content.Intent-int-int-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, startId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onTaskRemoved-android.content.Intent-(rootIntent: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onTimeout-int-(startId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onTrimMemory-int-(level: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#onUnbind-android.content.Intent-(intent: https://developer.android.com/reference/kotlin/android/content/Intent.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#startForeground-int-android.app.Notification-(id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, notification: https://developer.android.com/reference/kotlin/android/app/Notification.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#stopForeground-boolean-(removeNotification: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#stopSelf--()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/android/app/Service.html#stopSelfResult-int-(startId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`

## Public constructors

### FirebaseMessagingService

```
FirebaseMessagingService()
```

## Public functions

### onDeletedMessages

```
@WorkerThread
fun onDeletedMessages(): Unit
```

Called when the Firebase Cloud Messaging server deletes pending messages. This may be due to:

1. Too many messages stored on the Firebase Cloud Messaging server. This can occur when the app's servers send a bunch of non-collapsible messages to Firebase Cloud Messaging servers while the device is offline.
2. The device hasn't connected in a long time and the app server has recently (within the last 4 weeks) sent a message to the app on that device.

It is recommended that the app do a full sync with the app server after receiving this call. See [here](https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages) for more information.

### onDestroy

```
@CallSuper
fun onDestroy(): Unit
```

### onMessageReceived

```
@WorkerThread
fun onMessageReceived(message: RemoteMessage): Unit
```

Called when a message is received.

This should complete within 20 seconds. Taking longer may interfere with your ability to complete your work and may affect pending messages.

This is also called when a notification message is received while the app is in the foreground. The notification parameters can be retrieved with `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage#getNotification()`.

| Parameters |
|---|---|
| `message: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage` | Remote message that has been received. |

### onMessageSent

```
@WorkerThread
fun [onMessageSent](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onMessageSent(java.lang.String))(msgId: String): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This function is actually **decommissioned** along with all of FCM upstream messaging. Learn more in the [FAQ about FCM features deprecated in June 2023](https://firebase.google.com/support/faq#fcm-23-deprecation).

Called when an upstream message has been successfully sent to the GCM connection server.

| Parameters |
|---|---|
| `msgId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | of the upstream message sent using `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging#send(com.google.firebase.messaging.RemoteMessage)`. |

### onNewToken

```
@WorkerThread
fun [onNewToken](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onNewToken(java.lang.String))(token: String): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onRegistered(java.lang.String)` instead.

Called when a new token for the default Firebase project is generated.

This is invoked after app install when a token is first generated, and again if the token changes.

| Parameters |
|---|---|
| `token: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The token used for sending messages to this application instance. This token is the same as the one retrieved by `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging#getToken()`. |

### onRegistered

```
@WorkerThread
fun onRegistered(installationId: String): Unit
```

Called when the current app instance has been successfully registered with FCM.

This method provides the unique Firebase Installation ID (FID), which should be used to target this app instance for direct-send messaging.

This callback is triggered in the following scenarios:

- When the registration first succeeds after app install (if auto-init is enabled).
- When the registration is refreshed due to invalidation or updates (if auto-init is enabled).
- Immediately after a direct call to `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging#register()`.

Ensure the provided \`installationId\` is uploaded if it hasn't been previously or it might have been deleted on 404s.

**Note:** To use this API, you must enable it by adding `<meta-data
android:name="firebase_messaging_installation_id_enabled" android:value="true" />` to your app's manifest.

| Parameters |
|---|---|
| `installationId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The Firebase Installation ID used for sending messages to the current app instance. |

### onSendError

```
@WorkerThread
fun [onSendError](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService#onSendError(java.lang.String,java.lang.Exception))(msgId: String, exception: Exception): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This function is actually **decommissioned** along with all of FCM upstream messaging. Learn more in the [FAQ about FCM features deprecated in June 2023](https://firebase.google.com/support/faq#fcm-23-deprecation).

Called when there was an error sending an upstream message.

| Parameters |
|---|---|
| `msgId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | of the upstream message sent using `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging#send(com.google.firebase.messaging.RemoteMessage)`. |
| `exception: https://developer.android.com/reference/kotlin/java/lang/Exception.html` | description of the error, typically a `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/messaging/SendException`. |

### onUnregistered

```
@WorkerThread
fun onUnregistered(installationId: String): Unit
```

Called when the current app instance has been successfully unregistered from FCM via a call to `FirebaseMessaging.unregister()`.

This method confirms that the specified FID is no longer active for receiving FCM messages.

**Note:** To use this API, you must enable it by adding `<meta-data
android:name="firebase_messaging_installation_id_enabled" android:value="true" />` to your app's manifest.

| Parameters |
|---|---|
| `installationId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The Firebase Installation ID of the current app instance that was unregistered with FCM. |