public final class Sandman extends Object
UiModeManagerService
system service and the Somnambulator
activity.Modifier and Type | Method and Description |
---|---|
static boolean |
shouldStartDockApp(Context context,
Intent intent)
Returns true if the specified dock app intent should be started.
|
static void |
startDreamByUserRequest(Context context)
Starts a dream manually.
|
static void |
startDreamWhenDockedIfAppropriate(Context context)
Starts a dream when docked if the system has been configured to do so,
otherwise does nothing.
|
public static boolean shouldStartDockApp(Context context, Intent intent)
public static void startDreamByUserRequest(Context context)
public static void startDreamWhenDockedIfAppropriate(Context context)