# FirebaseInstanceIdService

public class **FirebaseInstanceIdService** extends [Service](https://developer.android.com/reference/android/app/Service.html)  
**This class is deprecated.**   

In favour of overriding onNewToken in FirebaseMessagingService. Once that has been
implemented, this service can be safely removed.

Base class to handle Firebase Instance ID token refresh events.

Any app interested in the Instance ID, or using Instance ID tokens, can extend this class
and implement `https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceIdService#onTokenRefresh()` to receive token refresh events.

To enable your FirebaseInstanceIdService include the following code in the manifest:

```
<!-- FirebaseInstanceIdService performs security checks at runtime,
      no need for explicit permissions despite exported="true"             -->
 <service android:name=".MyFirebaseInstanceIdService" android:exported="true">
     <intent-filter>
         <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
     </intent-filter>
 </service>
```

### Inherited Constant Summary

From class android.app.Service

|---|---|---|
| int | START_CONTINUATION_MASK |   |
| int | START_FLAG_REDELIVERY |   |
| int | START_FLAG_RETRY |   |
| int | START_NOT_STICKY |   |
| int | START_REDELIVER_INTENT |   |
| int | START_STICKY |   |
| int | START_STICKY_COMPATIBILITY |   |
| int | STOP_FOREGROUND_DETACH |   |
| int | STOP_FOREGROUND_REMOVE |   |

From class android.content.Context

|---|---|---|
| [String](https://developer.android.com/reference/java/lang/String.html) | ACCESSIBILITY_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | ACCOUNT_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | ACTIVITY_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | ALARM_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | APPWIDGET_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | APP_OPS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | APP_PREDICTION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | AUDIO_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | BACKUP_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | BATTERY_SERVICE |   |
| int | BIND_ABOVE_CLIENT |   |
| int | BIND_ADJUST_WITH_ACTIVITY |   |
| int | BIND_ALLOW_OOM_MANAGEMENT |   |
| int | BIND_AUTO_CREATE |   |
| int | BIND_DEBUG_UNBIND |   |
| int | BIND_EXTERNAL_SERVICE |   |
| int | BIND_IMPORTANT |   |
| int | BIND_INCLUDE_CAPABILITIES |   |
| int | BIND_NOT_FOREGROUND |   |
| int | BIND_WAIVE_PRIORITY |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | BIOMETRIC_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | BLUETOOTH_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CAMERA_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CAPTIONING_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CARRIER_CONFIG_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CLIPBOARD_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | COMPANION_DEVICE_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CONNECTIVITY_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CONSUMER_IR_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CONTENT_SUGGESTIONS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CONTEXTHUB_SERVICE |   |
| int | CONTEXT_IGNORE_SECURITY |   |
| int | CONTEXT_INCLUDE_CODE |   |
| int | CONTEXT_RESTRICTED |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | CROSS_PROFILE_APPS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | DEVICE_POLICY_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | DISPLAY_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | DOWNLOAD_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | DROPBOX_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | EUICC_CARD_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | EUICC_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | FINGERPRINT_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | HARDWARE_PROPERTIES_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | HDMI_CONTROL_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | INPUT_METHOD_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | INPUT_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | IPSEC_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | JOB_SCHEDULER_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | KEYGUARD_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | LAUNCHER_APPS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | LAYOUT_INFLATER_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | LOCATION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | MEDIA_PROJECTION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | MEDIA_ROUTER_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | MEDIA_SESSION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | MIDI_SERVICE |   |
| int | MODE_APPEND |   |
| int | MODE_ENABLE_WRITE_AHEAD_LOGGING |   |
| int | MODE_MULTI_PROCESS |   |
| int | MODE_NO_LOCALIZED_COLLATORS |   |
| int | MODE_PRIVATE |   |
| int | MODE_WORLD_READABLE |   |
| int | MODE_WORLD_WRITEABLE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | NETD_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | NETWORK_SCORE_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | NETWORK_STATS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | NFC_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | NOTIFICATION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | NSD_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | OEM_LOCK_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | PERMISSION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | PERSISTENT_DATA_BLOCK_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | POWER_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | PRINT_SERVICE |   |
| int | RECEIVER_VISIBLE_TO_INSTANT_APPS |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | RESTRICTIONS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | ROLE_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | ROLLBACK_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | SEARCH_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | SECURE_ELEMENT_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | SENSOR_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | SHORTCUT_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | STATS_MANAGER |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | STATUS_BAR_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | STORAGE_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | STORAGE_STATS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | SYSTEM_HEALTH_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | SYSTEM_UPDATE_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | TELECOM_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | TELEPHONY_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | TELEPHONY_SUBSCRIPTION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | TEXT_CLASSIFICATION_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | TEXT_SERVICES_MANAGER_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | TV_INPUT_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | UI_MODE_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | USAGE_STATS_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | USB_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | USER_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | VIBRATOR_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | VR_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WALLPAPER_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WIFI_AWARE_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WIFI_P2P_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WIFI_RTT_RANGING_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WIFI_RTT_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WIFI_SCANNING_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WIFI_SERVICE |   |
| [String](https://developer.android.com/reference/java/lang/String.html) | WINDOW_SERVICE |   |

From interface android.content.ComponentCallbacks2

|---|---|---|
| int | TRIM_MEMORY_BACKGROUND |   |
| int | TRIM_MEMORY_COMPLETE |   |
| int | TRIM_MEMORY_MODERATE |   |
| int | TRIM_MEMORY_RUNNING_CRITICAL |   |
| int | TRIM_MEMORY_RUNNING_LOW |   |
| int | TRIM_MEMORY_RUNNING_MODERATE |   |
| int | TRIM_MEMORY_UI_HIDDEN |   |

### Public Constructor Summary

|---|---|
|   | [FirebaseInstanceIdService](https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceIdService#FirebaseInstanceIdService())() |

### Public Method Summary

|---|---|
| void | [onTokenRefresh](https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceIdService#onTokenRefresh())() *This method is deprecated. In favour of overriding onNewToken in FirebaseMessagingService. This method will be invoked on token changes even if onNewToken is also used.* |

### Inherited Method Summary

From class android.app.Service

|---|---|
| void | dump([FileDescriptor](https://developer.android.com/reference/java/io/FileDescriptor.html) arg0, [PrintWriter](https://developer.android.com/reference/java/io/PrintWriter.html) arg1, [String\[\]](https://developer.android.com/reference/java/lang/String.html) arg2) |
| final [Application](https://developer.android.com/reference/android/app/Application.html) | getApplication() |
| final int | getForegroundServiceType() |
| abstract [IBinder](https://developer.android.com/reference/android/os/IBinder.html) | onBind([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | onConfigurationChanged([Configuration](https://developer.android.com/reference/android/content/res/Configuration.html) arg0) |
| void | onCreate() |
| void | onDestroy() |
| void | onLowMemory() |
| void | onRebind([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | onStart([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, int arg1) |
| int | onStartCommand([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, int arg1, int arg2) |
| void | onTaskRemoved([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | onTrimMemory(int arg0) |
| boolean | onUnbind([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| final void | startForeground(int arg0, [Notification](https://developer.android.com/reference/android/app/Notification.html) arg1) |
| final void | startForeground(int arg0, [Notification](https://developer.android.com/reference/android/app/Notification.html) arg1, int arg2) |
| final void | stopForeground(int arg0) |
| final void | stopForeground(boolean arg0) |
| final void | stopSelf() |
| final void | stopSelf(int arg0) |
| final boolean | stopSelfResult(int arg0) |

From class android.content.ContextWrapper

|---|---|
| void | attachBaseContext([Context](https://developer.android.com/reference/android/content/Context.html) arg0) |
| boolean | bindIsolatedService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, int arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) arg3, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg4) |
| boolean | bindService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, int arg1, [Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) arg2, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg3) |
| boolean | bindService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg1, int arg2) |
| boolean | bindServiceAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg1, int arg2, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg3) |
| int | checkCallingOrSelfPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| int | checkCallingOrSelfUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1) |
| int | checkCallingPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| int | checkCallingUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1) |
| int | checkPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, int arg2) |
| int | checkSelfPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| int | checkUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, int arg3, int arg4, int arg5) |
| int | checkUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, int arg2, int arg3) |
| void | clearWallpaper() |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createConfigurationContext([Configuration](https://developer.android.com/reference/android/content/res/Configuration.html) arg0) |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createContextForSplit([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createCredentialProtectedStorageContext() |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createDeviceProtectedStorageContext() |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createDisplayContext([Display](https://developer.android.com/reference/android/view/Display.html) arg0) |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createPackageContext([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createPackageContextAsUser([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg2) |
| [String\[\]](https://developer.android.com/reference/java/lang/String.html) | databaseList() |
| boolean | deleteDatabase([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| boolean | deleteFile([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| boolean | deleteSharedPreferences([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| void | enforceCallingOrSelfPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| void | enforceCallingOrSelfUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2) |
| void | enforceCallingPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| void | enforceCallingUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2) |
| void | enforcePermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, int arg2, [String](https://developer.android.com/reference/java/lang/String.html) arg3) |
| void | enforceUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, int arg3, int arg4, int arg5, [String](https://developer.android.com/reference/java/lang/String.html) arg6) |
| void | enforceUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, int arg2, int arg3, [String](https://developer.android.com/reference/java/lang/String.html) arg4) |
| [String\[\]](https://developer.android.com/reference/java/lang/String.html) | fileList() |
| [Context](https://developer.android.com/reference/android/content/Context.html) | getApplicationContext() |
| [ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo.html) | getApplicationInfo() |
| [AssetManager](https://developer.android.com/reference/android/content/res/AssetManager.html) | getAssets() |
| [Context](https://developer.android.com/reference/android/content/Context.html) | getBaseContext() |
| [File](https://developer.android.com/reference/java/io/File.html) | getCacheDir() |
| [ClassLoader](https://developer.android.com/reference/java/lang/ClassLoader.html) | getClassLoader() |
| [File](https://developer.android.com/reference/java/io/File.html) | getCodeCacheDir() |
| [ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html) | getContentResolver() |
| [File](https://developer.android.com/reference/java/io/File.html) | getDataDir() |
| [File](https://developer.android.com/reference/java/io/File.html) | getDatabasePath([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| [File](https://developer.android.com/reference/java/io/File.html) | getDir([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| [File](https://developer.android.com/reference/java/io/File.html) | getExternalCacheDir() |
| [File\[\]](https://developer.android.com/reference/java/io/File.html) | getExternalCacheDirs() |
| [File](https://developer.android.com/reference/java/io/File.html) | getExternalFilesDir([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| [File\[\]](https://developer.android.com/reference/java/io/File.html) | getExternalFilesDirs([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| [File\[\]](https://developer.android.com/reference/java/io/File.html) | getExternalMediaDirs() |
| [File](https://developer.android.com/reference/java/io/File.html) | getFileStreamPath([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| [File](https://developer.android.com/reference/java/io/File.html) | getFilesDir() |
| [Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) | getMainExecutor() |
| [Looper](https://developer.android.com/reference/android/os/Looper.html) | getMainLooper() |
| [File](https://developer.android.com/reference/java/io/File.html) | getNoBackupFilesDir() |
| [File](https://developer.android.com/reference/java/io/File.html) | getObbDir() |
| [File\[\]](https://developer.android.com/reference/java/io/File.html) | getObbDirs() |
| [String](https://developer.android.com/reference/java/lang/String.html) | getOpPackageName() |
| [String](https://developer.android.com/reference/java/lang/String.html) | getPackageCodePath() |
| [PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager.html) | getPackageManager() |
| [String](https://developer.android.com/reference/java/lang/String.html) | getPackageName() |
| [String](https://developer.android.com/reference/java/lang/String.html) | getPackageResourcePath() |
| [File](https://developer.android.com/reference/java/io/File.html) | getPreloadsFileCache() |
| [Resources](https://developer.android.com/reference/android/content/res/Resources.html) | getResources() |
| [SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html) | getSharedPreferences([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| [Object](https://developer.android.com/reference/java/lang/Object.html) | getSystemService([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| [String](https://developer.android.com/reference/java/lang/String.html) | getSystemServiceName([Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> arg0) |
| [Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html) | getTheme() |
| [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | getWallpaper() |
| int | getWallpaperDesiredMinimumHeight() |
| int | getWallpaperDesiredMinimumWidth() |
| void | grantUriPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [Uri](https://developer.android.com/reference/android/net/Uri.html) arg1, int arg2) |
| boolean | isCredentialProtectedStorage() |
| boolean | isDeviceProtectedStorage() |
| boolean | isRestricted() |
| boolean | moveDatabaseFrom([Context](https://developer.android.com/reference/android/content/Context.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| boolean | moveSharedPreferencesFrom([Context](https://developer.android.com/reference/android/content/Context.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| [FileInputStream](https://developer.android.com/reference/java/io/FileInputStream.html) | openFileInput([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| [FileOutputStream](https://developer.android.com/reference/java/io/FileOutputStream.html) | openFileOutput([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| [SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | openOrCreateDatabase([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, [SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html) arg2, [DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler.html) arg3) |
| [SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | openOrCreateDatabase([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, [SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html) arg2) |
| [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | peekWallpaper() |
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1) |
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1, int arg2) |
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3, int arg4) |
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3) |
| void | removeStickyBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | removeStickyBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| void | revokeUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1) |
| void | revokeUriPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [Uri](https://developer.android.com/reference/android/net/Uri.html) arg1, int arg2) |
| void | sendBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg2) |
| void | sendBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| void | sendBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | sendBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| void | sendBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg3) |
| void | sendBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2) |
| void | sendOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3, int arg4, [String](https://developer.android.com/reference/java/lang/String.html) arg5, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg6) |
| void | sendOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg2, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg3, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg4, int arg5, [String](https://developer.android.com/reference/java/lang/String.html) arg6, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg7) |
| void | sendOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| void | sendOrderedBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg3, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg4, int arg5, [String](https://developer.android.com/reference/java/lang/String.html) arg6, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg7) |
| void | sendStickyBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | sendStickyBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| void | sendStickyOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg1, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg2, int arg3, [String](https://developer.android.com/reference/java/lang/String.html) arg4, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg5) |
| void | sendStickyOrderedBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3, int arg4, [String](https://developer.android.com/reference/java/lang/String.html) arg5, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg6) |
| void | setTheme(int arg0) |
| void | setWallpaper([Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html) arg0) |
| void | setWallpaper([InputStream](https://developer.android.com/reference/java/io/InputStream.html) arg0) |
| void | startActivities([Intent\[\]](https://developer.android.com/reference/android/content/Intent.html) arg0, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg1) |
| void | startActivities([Intent\[\]](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | startActivity([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | startActivity([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg1) |
| void | startActivityAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| [ComponentName](https://developer.android.com/reference/android/content/ComponentName.html) | startForegroundService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| boolean | startInstrumentation([ComponentName](https://developer.android.com/reference/android/content/ComponentName.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg2) |
| void | startIntentSender([IntentSender](https://developer.android.com/reference/android/content/IntentSender.html) arg0, [Intent](https://developer.android.com/reference/android/content/Intent.html) arg1, int arg2, int arg3, int arg4) |
| void | startIntentSender([IntentSender](https://developer.android.com/reference/android/content/IntentSender.html) arg0, [Intent](https://developer.android.com/reference/android/content/Intent.html) arg1, int arg2, int arg3, int arg4, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg5) |
| [ComponentName](https://developer.android.com/reference/android/content/ComponentName.html) | startService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| boolean | stopService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| void | unbindService([ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg0) |
| void | unregisterReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0) |
| void | updateServiceGroup([ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg0, int arg1, int arg2) |

From class android.content.Context

|---|---|
| boolean | bindIsolatedService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, int arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) arg3, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg4) |
| boolean | bindService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, int arg1, [Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) arg2, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg3) |
| abstract boolean | bindService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg1, int arg2) |
| boolean | bindServiceAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg1, int arg2, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg3) |
| abstract int | checkCallingOrSelfPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract int | checkCallingOrSelfUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1) |
| abstract int | checkCallingPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract int | checkCallingUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1) |
| abstract int | checkPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, int arg2) |
| abstract int | checkSelfPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract int | checkUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, int arg3, int arg4, int arg5) |
| abstract int | checkUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, int arg2, int arg3) |
| abstract void | clearWallpaper() |
| abstract [Context](https://developer.android.com/reference/android/content/Context.html) | createConfigurationContext([Configuration](https://developer.android.com/reference/android/content/res/Configuration.html) arg0) |
| abstract [Context](https://developer.android.com/reference/android/content/Context.html) | createContextForSplit([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract [Context](https://developer.android.com/reference/android/content/Context.html) | createCredentialProtectedStorageContext() |
| abstract [Context](https://developer.android.com/reference/android/content/Context.html) | createDeviceProtectedStorageContext() |
| abstract [Context](https://developer.android.com/reference/android/content/Context.html) | createDisplayContext([Display](https://developer.android.com/reference/android/view/Display.html) arg0) |
| abstract [Context](https://developer.android.com/reference/android/content/Context.html) | createPackageContext([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| [Context](https://developer.android.com/reference/android/content/Context.html) | createPackageContextAsUser([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg2) |
| abstract [String\[\]](https://developer.android.com/reference/java/lang/String.html) | databaseList() |
| abstract boolean | deleteDatabase([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract boolean | deleteFile([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract boolean | deleteSharedPreferences([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract void | enforceCallingOrSelfPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| abstract void | enforceCallingOrSelfUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2) |
| abstract void | enforceCallingPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| abstract void | enforceCallingUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2) |
| abstract void | enforcePermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, int arg2, [String](https://developer.android.com/reference/java/lang/String.html) arg3) |
| abstract void | enforceUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, int arg3, int arg4, int arg5, [String](https://developer.android.com/reference/java/lang/String.html) arg6) |
| abstract void | enforceUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1, int arg2, int arg3, [String](https://developer.android.com/reference/java/lang/String.html) arg4) |
| abstract [String\[\]](https://developer.android.com/reference/java/lang/String.html) | fileList() |
| abstract [Context](https://developer.android.com/reference/android/content/Context.html) | getApplicationContext() |
| abstract [ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo.html) | getApplicationInfo() |
| abstract [AssetManager](https://developer.android.com/reference/android/content/res/AssetManager.html) | getAssets() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getCacheDir() |
| abstract [ClassLoader](https://developer.android.com/reference/java/lang/ClassLoader.html) | getClassLoader() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getCodeCacheDir() |
| final int | getColor(int arg0) |
| final [ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html) | getColorStateList(int arg0) |
| abstract [ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html) | getContentResolver() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getDataDir() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getDatabasePath([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getDir([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| final [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | getDrawable(int arg0) |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getExternalCacheDir() |
| abstract [File\[\]](https://developer.android.com/reference/java/io/File.html) | getExternalCacheDirs() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getExternalFilesDir([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract [File\[\]](https://developer.android.com/reference/java/io/File.html) | getExternalFilesDirs([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract [File\[\]](https://developer.android.com/reference/java/io/File.html) | getExternalMediaDirs() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getFileStreamPath([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getFilesDir() |
| [Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) | getMainExecutor() |
| abstract [Looper](https://developer.android.com/reference/android/os/Looper.html) | getMainLooper() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getNoBackupFilesDir() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getObbDir() |
| abstract [File\[\]](https://developer.android.com/reference/java/io/File.html) | getObbDirs() |
| [String](https://developer.android.com/reference/java/lang/String.html) | getOpPackageName() |
| abstract [String](https://developer.android.com/reference/java/lang/String.html) | getPackageCodePath() |
| abstract [PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager.html) | getPackageManager() |
| abstract [String](https://developer.android.com/reference/java/lang/String.html) | getPackageName() |
| abstract [String](https://developer.android.com/reference/java/lang/String.html) | getPackageResourcePath() |
| abstract [File](https://developer.android.com/reference/java/io/File.html) | getPreloadsFileCache() |
| abstract [Resources](https://developer.android.com/reference/android/content/res/Resources.html) | getResources() |
| abstract [SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html) | getSharedPreferences([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| final [String](https://developer.android.com/reference/java/lang/String.html) | getString(int arg0, [Object...](https://developer.android.com/reference/java/lang/Object.html) arg1) |
| final [String](https://developer.android.com/reference/java/lang/String.html) | getString(int arg0) |
| final \<T\> T | getSystemService([Class](https://developer.android.com/reference/java/lang/Class.html)\<T\> arg0) |
| abstract [Object](https://developer.android.com/reference/java/lang/Object.html) | getSystemService([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract [String](https://developer.android.com/reference/java/lang/String.html) | getSystemServiceName([Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> arg0) |
| final [CharSequence](https://developer.android.com/reference/java/lang/CharSequence.html) | getText(int arg0) |
| abstract [Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html) | getTheme() |
| abstract [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | getWallpaper() |
| abstract int | getWallpaperDesiredMinimumHeight() |
| abstract int | getWallpaperDesiredMinimumWidth() |
| abstract void | grantUriPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [Uri](https://developer.android.com/reference/android/net/Uri.html) arg1, int arg2) |
| abstract boolean | isCredentialProtectedStorage() |
| abstract boolean | isDeviceProtectedStorage() |
| boolean | isRestricted() |
| abstract boolean | moveDatabaseFrom([Context](https://developer.android.com/reference/android/content/Context.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| abstract boolean | moveSharedPreferencesFrom([Context](https://developer.android.com/reference/android/content/Context.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| final [TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html) | obtainStyledAttributes([AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html) arg0, int\[\] arg1) |
| final [TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html) | obtainStyledAttributes([AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html) arg0, int\[\] arg1, int arg2, int arg3) |
| final [TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html) | obtainStyledAttributes(int arg0, int\[\] arg1) |
| final [TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html) | obtainStyledAttributes(int\[\] arg0) |
| abstract [FileInputStream](https://developer.android.com/reference/java/io/FileInputStream.html) | openFileInput([String](https://developer.android.com/reference/java/lang/String.html) arg0) |
| abstract [FileOutputStream](https://developer.android.com/reference/java/io/FileOutputStream.html) | openFileOutput([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1) |
| abstract [SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | openOrCreateDatabase([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, [SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html) arg2, [DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler.html) arg3) |
| abstract [SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | openOrCreateDatabase([String](https://developer.android.com/reference/java/lang/String.html) arg0, int arg1, [SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html) arg2) |
| abstract [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | peekWallpaper() |
| void | registerComponentCallbacks([ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html) arg0) |
| abstract [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1) |
| abstract [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1, int arg2) |
| abstract [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3, int arg4) |
| abstract [Intent](https://developer.android.com/reference/android/content/Intent.html) | registerReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0, [IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3) |
| abstract void | removeStickyBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract void | removeStickyBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| abstract void | revokeUriPermission([Uri](https://developer.android.com/reference/android/net/Uri.html) arg0, int arg1) |
| abstract void | revokeUriPermission([String](https://developer.android.com/reference/java/lang/String.html) arg0, [Uri](https://developer.android.com/reference/android/net/Uri.html) arg1, int arg2) |
| abstract void | sendBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg2) |
| abstract void | sendBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| abstract void | sendBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract void | sendBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| abstract void | sendBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg3) |
| abstract void | sendBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2) |
| abstract void | sendOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3, int arg4, [String](https://developer.android.com/reference/java/lang/String.html) arg5, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg6) |
| abstract void | sendOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg2, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg3, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg4, int arg5, [String](https://developer.android.com/reference/java/lang/String.html) arg6, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg7) |
| abstract void | sendOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1) |
| abstract void | sendOrderedBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [String](https://developer.android.com/reference/java/lang/String.html) arg2, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg3, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg4, int arg5, [String](https://developer.android.com/reference/java/lang/String.html) arg6, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg7) |
| abstract void | sendStickyBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract void | sendStickyBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| abstract void | sendStickyOrderedBroadcast([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg1, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg2, int arg3, [String](https://developer.android.com/reference/java/lang/String.html) arg4, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg5) |
| abstract void | sendStickyOrderedBroadcastAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1, [BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg2, [Handler](https://developer.android.com/reference/android/os/Handler.html) arg3, int arg4, [String](https://developer.android.com/reference/java/lang/String.html) arg5, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg6) |
| abstract void | setTheme(int arg0) |
| abstract void | setWallpaper([Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html) arg0) |
| abstract void | setWallpaper([InputStream](https://developer.android.com/reference/java/io/InputStream.html) arg0) |
| abstract void | startActivities([Intent\[\]](https://developer.android.com/reference/android/content/Intent.html) arg0, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg1) |
| abstract void | startActivities([Intent\[\]](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract void | startActivity([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract void | startActivity([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg1) |
| void | startActivityAsUser([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0, [UserHandle](https://developer.android.com/reference/android/os/UserHandle.html) arg1) |
| abstract [ComponentName](https://developer.android.com/reference/android/content/ComponentName.html) | startForegroundService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract boolean | startInstrumentation([ComponentName](https://developer.android.com/reference/android/content/ComponentName.html) arg0, [String](https://developer.android.com/reference/java/lang/String.html) arg1, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg2) |
| abstract void | startIntentSender([IntentSender](https://developer.android.com/reference/android/content/IntentSender.html) arg0, [Intent](https://developer.android.com/reference/android/content/Intent.html) arg1, int arg2, int arg3, int arg4) |
| abstract void | startIntentSender([IntentSender](https://developer.android.com/reference/android/content/IntentSender.html) arg0, [Intent](https://developer.android.com/reference/android/content/Intent.html) arg1, int arg2, int arg3, int arg4, [Bundle](https://developer.android.com/reference/android/os/Bundle.html) arg5) |
| abstract [ComponentName](https://developer.android.com/reference/android/content/ComponentName.html) | startService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract boolean | stopService([Intent](https://developer.android.com/reference/android/content/Intent.html) arg0) |
| abstract void | unbindService([ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg0) |
| void | unregisterComponentCallbacks([ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html) arg0) |
| abstract void | unregisterReceiver([BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html) arg0) |
| void | updateServiceGroup([ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html) arg0, int arg1, int arg2) |

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.content.ComponentCallbacks2

|---|---|
| abstract void | onTrimMemory(int arg0) |

From interface android.content.ComponentCallbacks

|---|---|
| abstract void | onConfigurationChanged([Configuration](https://developer.android.com/reference/android/content/res/Configuration.html) arg0) |
| abstract void | onLowMemory() |

## Public Constructors

#### public **FirebaseInstanceIdService** ()

## Public Methods

#### public void **onTokenRefresh** ()

**This method is deprecated.**   

In favour of overriding onNewToken in FirebaseMessagingService. This method will be
invoked on token changes even if onNewToken is also used.
Called when the system determines that the tokens need to be refreshed. The
application should call getToken() and send the tokens to all application servers.

This will not be called very frequently, it is needed for key rotation and to handle
Instance ID changes due to:

- App deletes Instance ID
- App is restored on a new device
- User uninstalls/reinstall the app
- User clears app data

The system will throttle the refresh event across all devices to avoid overloading
application servers with token updates.