ActivityOptions

Class of android.app · ActivityOptions.java · Android's reference

public class ActivityOptions

How to start an activity: the bounds and the display are kept, the animations have no effect on the one window.

Fields

public static final int MODE_BACKGROUND_ACTIVITY_START_SYSTEM_DEFINED = 0 source
public static final int MODE_BACKGROUND_ACTIVITY_START_ALLOWED = 1 source
public static final int MODE_BACKGROUND_ACTIVITY_START_DENIED = 2 source
public static final int MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS = 3 source

Methods

public static ActivityOptions makeBasic() source
public static ActivityOptions makeCustomAnimation(android.content.Context context, int enterResId, int exitResId) source
public static ActivityOptions makeScaleUpAnimation(View source, int startX, int startY, int width, int height) source
public static ActivityOptions makeClipRevealAnimation(View source, int startX, int startY, int width, int height) source
public static ActivityOptions makeThumbnailScaleUpAnimation(View source, android.graphics.Bitmap thumbnail, int startX, int startY) source
public static ActivityOptions makeSceneTransitionAnimation(Activity activity, View sharedElement, String sharedElementName) source
public static ActivityOptions makeSceneTransitionAnimation(Activity activity, Pair<View, String>... sharedElements) source
public static ActivityOptions makeTaskLaunchBehind() source
public Rect getLaunchBounds() source
public ActivityOptions setLaunchBounds(Rect screenSpacePixelRect) source
public int getLaunchDisplayId() source
public ActivityOptions setLaunchDisplayId(int launchDisplayId) source
public ActivityOptions setPendingIntentBackgroundActivityStartMode(int state) source
public int getPendingIntentBackgroundActivityStartMode() source
public void requestUsageTimeReport(PendingIntent receiver) empty body source

No usage time is measured, so the report never comes.

public void update(ActivityOptions otherOptions) source
public Bundle toBundle() source
public String toString() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.