# NotificationReceiverService


```
public abstract class NotificationReceiverService extends LifecycleService
```

<br />

|---|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.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.lifecycle.LifecycleService](https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html) ||
|   |   |   |   | ↳ | [com.google.android.managementapi.notification.NotificationReceiverService](https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService) |

*** ** * ** ***

Service that should be extended to subscribe to receive notification from Android Management API client app.

*Note:* This base class automatically handles security protections. It ensures that only the Android Device Policy (ADP) app can securely communicate with this service. Developers do not need to declare a custom `BIND` permission.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#NotificationReceiverService()()` |

| ### Protected methods |
|---|---|
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/accountsetup/AccountSetupListener` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#getAccountSetupListener()()` Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/accountsetup/AccountSetupListener` that will be notified of any account setup related updates. |
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/approles/AppRolesListener` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#getAppRolesListener()()` Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/approles/AppRolesListener` that will be notified of any app roles related updates. |
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/commands/CommandListener` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#getCommandListener()()` Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/commands/CommandListener` that will be notified when command related notifications are received. |
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/dpcmigration/DpcMigrationListener` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#getDpcMigrationListener()()` Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/dpcmigration/DpcMigrationListener` that will be notified when dpc migration related notifications are received. |
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/oemsystemupdate/OemSystemUpdateHandler` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#getOemSystemUpdateHandler()()` Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/oemsystemupdate/OemSystemUpdateHandler` that will be notified of any OEM system update related requests. |
| `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/environment/EnvironmentListener` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#getPrepareEnvironmentListener()()` Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/environment/EnvironmentListener` that will be notified of any environment related updates. |
| `void` | `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService#setupInjection()()` Method called when `https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html` is created to allow fields and objects to be initialised. |

### Inherited methods

From [android.content.Context](https://developer.android.com/reference/android/content/Context.html) `boolean` `https://developer.android.com/reference/android/content/Context.html#bindIsolatedService(android.content.Intent, android.content.Context.BindServiceFlags, kotlin.String, java.util.concurrent.Executor, android.content.ServiceConnection)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.BindServiceFlags.html p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/concurrent/Executor.html p3,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p4
)` `final int` `https://developer.android.com/reference/android/content/Context.html#getColor(kotlin.Int)(int p0)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/ColorStateList.html` `https://developer.android.com/reference/android/content/Context.html#getColorStateList(kotlin.Int)(int p0)` `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `https://developer.android.com/reference/android/content/Context.html#getDrawable(kotlin.Int)(int p0)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#getString(kotlin.Int)(int p0)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/Context.html#getString(kotlin.Int, kotlin.Any...)(int p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/Object.html... p1)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html T` `<T extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.Class)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html T> p0)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/CharSequence.html` `https://developer.android.com/reference/android/content/Context.html#getText(kotlin.Int)(int p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.BindServiceFlags.html` `https://developer.android.com/reference/android/content/Context.html#getUpdateableFlags()()` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/TypedArray.html` `https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(kotlin.IntArray)(@https://developer.android.com/reference/androidx/annotation/NonNull.html int[] p0)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/TypedArray.html` `https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, kotlin.IntArray)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/util/AttributeSet.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html int[] p1)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/TypedArray.html` `https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(kotlin.Int, kotlin.IntArray)(int p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html int[] p1)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/TypedArray.html` `https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, kotlin.IntArray, kotlin.Int, kotlin.Int)(
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/util/AttributeSet.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html int[] p1,
int p2,
int p3
)` `void` `https://developer.android.com/reference/android/content/Context.html#revokeSelfPermissionOnKill(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `void` `https://developer.android.com/reference/android/content/Context.html#sendBroadcastWithMultiplePermissions(android.content.Intent, kotlin.Array)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html String[] p1
)` From [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindIsolatedService(android.content.Intent, kotlin.Int, kotlin.String, java.util.concurrent.Executor, android.content.ServiceConnection)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
int p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/concurrent/Executor.html p3,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p4
)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.ServiceConnection, android.content.Context.BindServiceFlags)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.BindServiceFlags.html p2
)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.ServiceConnection, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p1, int p2)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.Context.BindServiceFlags, java.util.concurrent.Executor, android.content.ServiceConnection)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.BindServiceFlags.html p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/concurrent/Executor.html p2,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p3
)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, kotlin.Int, java.util.concurrent.Executor, android.content.ServiceConnection)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
int p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/concurrent/Executor.html p2,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p3
)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, android.content.Context.BindServiceFlags, android.os.UserHandle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.BindServiceFlags.html p2,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p3
)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, kotlin.Int, android.os.UserHandle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p1,
int p2,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p3
)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfPermission(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermission(android.net.Uri, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, int p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html int[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermissions(kotlin.collections.MutableList, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html> p0, int p1)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermission(android.net.Uri, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, int p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html int[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermissions(kotlin.collections.MutableList, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html> p0, int p1)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkContentUriPermissionFull(android.net.Uri, kotlin.Int, kotlin.Int, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, int p1, int p2, int p3)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkPermission(kotlin.String, kotlin.Int, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, int p1, int p2)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkSelfPermission(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, kotlin.Int, kotlin.Int, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, int p1, int p2, int p3)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, kotlin.String, kotlin.String, kotlin.Int, kotlin.Int, kotlin.Int)(
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/net/Uri.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
int p3,
int p4,
int p5
)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html int[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermissions(kotlin.collections.MutableList, kotlin.Int, kotlin.Int, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html> p0, int p1, int p2, int p3)` `void` `[clearWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#clearWallpaper())()`

**This method is deprecated.** Deprecated in Java
`@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createAttributionContext(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createConfigurationContext(android.content.res.Configuration)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/Configuration.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createContext(android.content.ContextParams)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ContextParams.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createContextForSplit(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceContext(kotlin.Int)(int p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceProtectedStorageContext()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createDisplayContext(android.view.Display)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/view/Display.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createPackageContext(kotlin.String, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, int p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createWindowContext(kotlin.Int, android.os.Bundle)(int p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#createWindowContext(android.view.Display, kotlin.Int, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/view/Display.html p0, int p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html String[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#databaseList()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#deleteFile(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#deleteSharedPreferences(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfPermission(kotlin.String, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfUriPermission(android.net.Uri, kotlin.Int, kotlin.String)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0,
int p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p2
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingPermission(kotlin.String, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingUriPermission(android.net.Uri, kotlin.Int, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, int p1, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p2)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforcePermission(kotlin.String, kotlin.Int, kotlin.Int, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, int p1, int p2, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p3)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.String)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0,
int p1,
int p2,
int p3,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p4
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, kotlin.String, kotlin.String, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.String)(
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/net/Uri.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
int p3,
int p4,
int p5,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p6
)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html String[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#fileList()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationContext()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/pm/ApplicationInfo.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationInfo()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/AssetManager.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getAssets()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/AttributionSource.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getAttributionSource()()` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getAttributionTag()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getBaseContext()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getCacheDir()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/ClassLoader.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getClassLoader()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getCodeCacheDir()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ContentResolver.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getContentResolver()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDataDir()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDatabasePath(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `int` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDeviceId()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDir(kotlin.String, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, int p1)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/view/Display.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getDisplay()()` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalCacheDir()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalCacheDirs()()` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDir(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDirs(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalMediaDirs()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getFileStreamPath(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getFilesDir()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/concurrent/Executor.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getMainExecutor()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Looper.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getMainLooper()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getNoBackupFilesDir()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getObbDir()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html File[]` `https://developer.android.com/reference/android/content/ContextWrapper.html#getObbDirs()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getOpPackageName()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageCodePath()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/pm/PackageManager.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageManager()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageName()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getPackageResourcePath()()` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/ContextParams.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getParams()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/Resources.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getResources()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/SharedPreferences.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getSharedPreferences(kotlin.String, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, int p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/Object.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getSystemService(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getSystemServiceName(java.lang.Class)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html ?> p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/Resources.Theme.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#getTheme()()` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `[getWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaper())()`

**This method is deprecated.** Deprecated in Java
`int` `[getWallpaperDesiredMinimumHeight](https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumHeight())()`

**This method is deprecated.** Deprecated in Java
`int` `[getWallpaperDesiredMinimumWidth](https://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumWidth())()`

**This method is deprecated.** Deprecated in Java
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#grantUriPermission(kotlin.String, android.net.Uri, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p1, int p2)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#isDeviceProtectedStorage()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#isRestricted()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#isUiContext()()` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#moveDatabaseFrom(android.content.Context, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#moveSharedPreferencesFrom(android.content.Context, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/FileInputStream.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#openFileInput(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/FileOutputStream.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#openFileOutput(kotlin.String, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, int p1)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(kotlin.String, kotlin.Int, android.database.sqlite.SQLiteDatabase.CursorFactory)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0,
int p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html p2
)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(kotlin.String, kotlin.Int, android.database.sqlite.SQLiteDatabase.CursorFactory, android.database.DatabaseErrorHandler)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0,
int p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/database/DatabaseErrorHandler.html p3
)` `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `[peekWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#peekWallpaper())()`

**This method is deprecated.** Deprecated in Java
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#rebindService(android.content.ServiceConnection, android.content.Context.BindServiceFlags)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.BindServiceFlags.html p1
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerComponentCallbacks(android.content.ComponentCallbacks)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ComponentCallbacks.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerDeviceIdChangeListener(java.util.concurrent.Executor, java.util.function.IntConsumer)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/concurrent/Executor.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/function/IntConsumer.html p1
)` `https://developer.android.com/reference/android/content/Intent.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/IntentFilter.html p1)` `https://developer.android.com/reference/android/content/Intent.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, kotlin.Int)(
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/IntentFilter.html p1,
int p2
)` `https://developer.android.com/reference/android/content/Intent.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, kotlin.String, android.os.Handler)(
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/IntentFilter.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p3
)` `https://developer.android.com/reference/android/content/Intent.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, kotlin.String, android.os.Handler, kotlin.Int)(
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/IntentFilter.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p3,
int p4
)` `void` `[removeStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcast(android.content.Intent))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)`

**This method is deprecated.** Deprecated in Java
`void` `[removeStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p1)`

**This method is deprecated.** Deprecated in Java
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#revokeSelfPermissionsOnKill(kotlin.collections.MutableCollection)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Collection.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html> p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#revokeUriPermission(android.net.Uri, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p0, int p1)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#revokeUriPermission(kotlin.String, android.net.Uri, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html p1, int p2)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent, kotlin.String, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p1)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p1, https://developer.android.com/reference/java/lang/String.html p2)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, kotlin.String, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, kotlin.String, android.content.BroadcastReceiver, android.os.Handler, kotlin.Int, kotlin.String, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p3,
int p4,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p5,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p6
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, kotlin.String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, kotlin.Int, kotlin.String, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p3,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p4,
int p5,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p6,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p7
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, kotlin.String, kotlin.String, android.content.BroadcastReceiver, android.os.Handler, kotlin.Int, kotlin.String, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p3,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p4,
int p5,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p6,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p7
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, kotlin.Int, kotlin.String, kotlin.String, android.content.BroadcastReceiver, android.os.Handler, kotlin.String, android.os.Bundle, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
int p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p3,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p4,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p5,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p6,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p7,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p8
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, kotlin.String, android.content.BroadcastReceiver, android.os.Handler, kotlin.Int, kotlin.String, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p3,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p4,
int p5,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p6,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p7
)` `void` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcast(android.content.Intent))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)`

**This method is deprecated.** Deprecated in Java
`void` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcast(android.content.Intent, android.os.Bundle))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p1)`

**This method is deprecated.** Deprecated in Java
`void` `[sendStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p1)`

**This method is deprecated.** Deprecated in Java
`void` `[sendStickyOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, kotlin.Int, kotlin.String, android.os.Bundle))(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p2,
int p3,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p4,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p5
)`

**This method is deprecated.** Deprecated in Java
`void` `[sendStickyOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, kotlin.Int, kotlin.String, android.os.Bundle))(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/UserHandle.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p2,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Handler.html p3,
int p4,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p5,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p6
)`

**This method is deprecated.** Deprecated in Java
`void` `https://developer.android.com/reference/android/content/ContextWrapper.html#setTheme(kotlin.Int)(int p0)` `void` `[setWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(android.graphics.Bitmap))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/graphics/Bitmap.html p0)`

**This method is deprecated.** Deprecated in Java
`void` `[setWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(java.io.InputStream))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/InputStream.html p0)`

**This method is deprecated.** Deprecated in Java
`boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#shouldShowRequestPermissionRationale(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#startActivities(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull.html Intent[] p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#startActivities(kotlin.Array, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html Intent[] p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p1)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#startActivity(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#startActivity(android.content.Intent, android.os.Bundle)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0, @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p1)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/ComponentName.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#startForegroundService(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#startInstrumentation(android.content.ComponentName, kotlin.String, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ComponentName.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html p1,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p2
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#startIntentSender(android.content.IntentSender, android.content.Intent, kotlin.Int, kotlin.Int, kotlin.Int)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/IntentSender.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/Intent.html p1,
int p2,
int p3,
int p4
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#startIntentSender(android.content.IntentSender, android.content.Intent, kotlin.Int, kotlin.Int, kotlin.Int, android.os.Bundle)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/IntentSender.html p0,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/Intent.html p1,
int p2,
int p3,
int p4,
@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/os/Bundle.html p5
)` `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/content/ComponentName.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#startService(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `boolean` `https://developer.android.com/reference/android/content/ContextWrapper.html#stopService(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#unbindService(android.content.ServiceConnection)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterComponentCallbacks(android.content.ComponentCallbacks)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ComponentCallbacks.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterDeviceIdChangeListener(java.util.function.IntConsumer)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/function/IntConsumer.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterReceiver(android.content.BroadcastReceiver)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/BroadcastReceiver.html p0)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceBindings(kotlin.collections.MutableCollection)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Collection.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.UpdateBindingParams.html> p0
)` `void` `https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceGroup(android.content.ServiceConnection, kotlin.Int, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/ServiceConnection.html p0, int p1, int p2)` From [androidx.lifecycle.LifecycleService](https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html) `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/androidx/lifecycle/Lifecycle.html` `https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html#getLifecycle()()` `void` `@https://developer.android.com/reference/androidx/annotation/CallSuper.html
https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html#onDestroy()()` `void` `@https://developer.android.com/reference/androidx/annotation/CallSuper.html
[onStart](https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html#onStart(android.content.Intent, kotlin.Int))(https://developer.android.com/reference/android/content/Intent.html intent, int startId)`

**This method is deprecated.** Deprecated in Java
`int` `@https://developer.android.com/reference/androidx/annotation/CallSuper.html
https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html#onStartCommand(android.content.Intent, kotlin.Int, kotlin.Int)(https://developer.android.com/reference/android/content/Intent.html intent, int flags, int startId)` From [android.app.Service](https://developer.android.com/reference/android/app/Service.html) `void` `https://developer.android.com/reference/android/app/Service.html#attachBaseContext(android.content.Context)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html p0)` `void` `https://developer.android.com/reference/android/app/Service.html#dump(java.io.FileDescriptor, java.io.PrintWriter, kotlin.Array)(
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/FileDescriptor.html p0,
@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/io/PrintWriter.html p1,
@https://developer.android.com/reference/androidx/annotation/NonNull.html String[] p2
)` `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/app/Application.html` `https://developer.android.com/reference/android/app/Service.html#getApplication()()` `final int` `https://developer.android.com/reference/android/app/Service.html#getForegroundServiceType()()` `void` `https://developer.android.com/reference/android/app/Service.html#onConfigurationChanged(android.content.res.Configuration)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/res/Configuration.html p0)` `void` `https://developer.android.com/reference/android/app/Service.html#onLowMemory()()` `void` `https://developer.android.com/reference/android/app/Service.html#onRebind(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `void` `https://developer.android.com/reference/android/app/Service.html#onTaskRemoved(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `void` `https://developer.android.com/reference/android/app/Service.html#onTimeout(kotlin.Int)(int p0)` `void` `https://developer.android.com/reference/android/app/Service.html#onTimeout(kotlin.Int, kotlin.Int)(int p0, int p1)` `void` `https://developer.android.com/reference/android/app/Service.html#onTrimMemory(kotlin.Int)(int p0)` `boolean` `https://developer.android.com/reference/android/app/Service.html#onUnbind(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Intent.html p0)` `final void` `https://developer.android.com/reference/android/app/Service.html#startForeground(kotlin.Int, android.app.Notification)(int p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/app/Notification.html p1)` `final void` `https://developer.android.com/reference/android/app/Service.html#startForeground(kotlin.Int, android.app.Notification, kotlin.Int)(int p0, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/app/Notification.html p1, int p2)` `final void` `[stopForeground](https://developer.android.com/reference/android/app/Service.html#stopForeground(kotlin.Boolean))(boolean p0)`

**This method is deprecated.** Deprecated in Java
`final void` `https://developer.android.com/reference/android/app/Service.html#stopForeground(kotlin.Int)(int p0)` `final void` `https://developer.android.com/reference/android/app/Service.html#stopSelf()()` `final void` `https://developer.android.com/reference/android/app/Service.html#stopSelf(kotlin.Int)(int p0)` `final boolean` `https://developer.android.com/reference/android/app/Service.html#stopSelfResult(kotlin.Int)(int p0)`

## Public constructors

### NotificationReceiverService

```
public NotificationReceiverService()
```

## Protected methods

### getAccountSetupListener

```
protected AccountSetupListener getAccountSetupListener()
```

Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/accountsetup/AccountSetupListener` that will be notified of any account setup related updates.

### getAppRolesListener

```
protected AppRolesListener getAppRolesListener()
```

Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/approles/AppRolesListener` that will be notified of any app roles related updates.

### getCommandListener

```
protected CommandListener getCommandListener()
```

Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/commands/CommandListener` that will be notified when command related notifications are received.

### getDpcMigrationListener

```
protected DpcMigrationListener getDpcMigrationListener()
```

Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/dpcmigration/DpcMigrationListener` that will be notified when dpc migration related notifications are received.

### getOemSystemUpdateHandler

```
protected OemSystemUpdateHandler getOemSystemUpdateHandler()
```

Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/oemsystemupdate/OemSystemUpdateHandler` that will be notified of any OEM system update related requests.

### getPrepareEnvironmentListener

```
protected EnvironmentListener getPrepareEnvironmentListener()
```

Returns the `https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/environment/EnvironmentListener` that will be notified of any environment related updates.

### setupInjection

```
protected void setupInjection()
```

Method called when `https://developer.android.com/reference/androidx/lifecycle/LifecycleService.html` is created to allow fields and objects to be initialised.

Subclasses should override this method if they wish to set up dependency injection.