FileDocCategorySizeDatePackage
RecentsUserEventProxyReceiver.javaAPI DocAndroid 5.1 API3089Thu Mar 12 22:22:42 GMT 2015com.android.systemui.recents

RecentsUserEventProxyReceiver

public class RecentsUserEventProxyReceiver extends android.content.BroadcastReceiver
A proxy for Recents events which happens strictly for non-owner users.

Fields Summary
public static final String
ACTION_PROXY_SHOW_RECENTS_TO_USER
public static final String
ACTION_PROXY_HIDE_RECENTS_TO_USER
public static final String
ACTION_PROXY_TOGGLE_RECENTS_TO_USER
public static final String
ACTION_PROXY_PRELOAD_RECENTS_TO_USER
public static final String
ACTION_PROXY_CONFIG_CHANGE_TO_USER
Constructors Summary
Methods Summary
public voidonReceive(android.content.Context context, android.content.Intent intent)


    
          
        AlternateRecentsComponent recents = Recents.getRecentsComponent(
                context.getApplicationContext(), true);
        switch (intent.getAction()) {
            case ACTION_PROXY_SHOW_RECENTS_TO_USER: {
                boolean triggeredFromAltTab = intent.getBooleanExtra(
                        AlternateRecentsComponent.EXTRA_TRIGGERED_FROM_ALT_TAB, false);
                recents.showRecents(triggeredFromAltTab);
                break;
            }
            case ACTION_PROXY_HIDE_RECENTS_TO_USER: {
                boolean triggeredFromAltTab = intent.getBooleanExtra(
                        AlternateRecentsComponent.EXTRA_TRIGGERED_FROM_ALT_TAB, false);
                boolean triggeredFromHome = intent.getBooleanExtra(
                        AlternateRecentsComponent.EXTRA_TRIGGERED_FROM_HOME_KEY, false);
                recents.hideRecents(triggeredFromAltTab, triggeredFromHome);
                break;
            }
            case ACTION_PROXY_TOGGLE_RECENTS_TO_USER:
                recents.toggleRecents();
                break;
            case ACTION_PROXY_PRELOAD_RECENTS_TO_USER:
                recents.preloadRecents();
                break;
            case ACTION_PROXY_CONFIG_CHANGE_TO_USER:
                recents.configurationChanged();
                break;
        }