@@ -2141,6 +2141,30 @@ public static Intent createChooser(Intent target, CharSequence title) {
21412141 public static final String ACTION_PRE_BOOT_COMPLETED =
21422142 "android.intent.action.PRE_BOOT_COMPLETED" ;
21432143
2144+ /**
2145+ * Broadcast sent to the system when a user is added. Carries an extra EXTRA_USERID that has the
2146+ * userid of the new user.
2147+ * @hide
2148+ */
2149+ public static final String ACTION_USER_ADDED =
2150+ "android.intent.action.USER_ADDED" ;
2151+
2152+ /**
2153+ * Broadcast sent to the system when a user is removed. Carries an extra EXTRA_USERID that has
2154+ * the userid of the user.
2155+ * @hide
2156+ */
2157+ public static final String ACTION_USER_REMOVED =
2158+ "android.intent.action.USER_REMOVED" ;
2159+
2160+ /**
2161+ * Broadcast sent to the system when the user switches. Carries an extra EXTRA_USERID that has
2162+ * the userid of the user to become the current one.
2163+ * @hide
2164+ */
2165+ public static final String ACTION_USER_SWITCHED =
2166+ "android.intent.action.USER_SWITCHED" ;
2167+
21442168 // ---------------------------------------------------------------------
21452169 // ---------------------------------------------------------------------
21462170 // Standard intent categories (see addCategory()).
@@ -2682,6 +2706,13 @@ public static Intent createChooser(Intent target, CharSequence title) {
26822706 public static final String EXTRA_LOCAL_ONLY =
26832707 "android.intent.extra.LOCAL_ONLY" ;
26842708
2709+ /**
2710+ * The userid carried with broadcast intents related to addition, removal and switching of users
2711+ * - {@link #ACTION_USER_ADDED}, {@link #ACTION_USER_REMOVED} and {@link #ACTION_USER_SWITCHED}.
2712+ * @hide
2713+ */
2714+ public static final String EXTRA_USERID =
2715+ "android.intent.extra.user_id" ;
26852716 // ---------------------------------------------------------------------
26862717 // ---------------------------------------------------------------------
26872718 // Intent flags (see mFlags variable).
0 commit comments