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.
public static final int MODE_BACKGROUND_ACTIVITY_START_SYSTEM_DEFINED = 0 sourcepublic static final int MODE_BACKGROUND_ACTIVITY_START_ALLOWED = 1 sourcepublic static final int MODE_BACKGROUND_ACTIVITY_START_DENIED = 2 sourcepublic static final int MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS = 3 sourcepublic static ActivityOptions makeBasic() sourcepublic static ActivityOptions makeCustomAnimation(android.content.Context context, int enterResId, int exitResId) sourcepublic static ActivityOptions makeScaleUpAnimation(View source, int startX, int startY, int width, int height) sourcepublic static ActivityOptions makeClipRevealAnimation(View source, int startX, int startY, int width, int height) sourcepublic static ActivityOptions makeThumbnailScaleUpAnimation(View source, android.graphics.Bitmap thumbnail, int startX, int startY) sourcepublic static ActivityOptions makeSceneTransitionAnimation(Activity activity, View sharedElement, String sharedElementName) sourcepublic static ActivityOptions makeSceneTransitionAnimation(Activity activity, Pair<View, String>... sharedElements) sourcepublic static ActivityOptions makeTaskLaunchBehind() sourcepublic Rect getLaunchBounds() sourcepublic ActivityOptions setLaunchBounds(Rect screenSpacePixelRect) sourcepublic int getLaunchDisplayId() sourcepublic ActivityOptions setLaunchDisplayId(int launchDisplayId) sourcepublic ActivityOptions setPendingIntentBackgroundActivityStartMode(int state) sourcepublic int getPendingIntentBackgroundActivityStartMode() sourcepublic void requestUsageTimeReport(PendingIntent receiver) empty body sourceNo usage time is measured, so the report never comes.
public void update(ActivityOptions otherOptions) sourcepublic Bundle toBundle() sourcepublic String toString() sourceMade 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.