Android Guides | Samples

Android.App.ActivityOptions Class

Helper class for building an options Bundle that can be used with Context.StartActivity(Intent,Bundle) and related methods.

See Also: ActivityOptions

Syntax

[Android.Runtime.Register("android/app/ActivityOptions", DoNotGenerateAcw=true)]
public class ActivityOptions : Object

Remarks

Helper class for building an options Bundle that can be used with Context.StartActivity(Intent,Bundle) and related methods.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16

The members of Android.App.ActivityOptions are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
MakeCustomAnimation(Context, Int32, Int32) : ActivityOptions
Create an ActivityOptions specifying a custom animation to run when the activity is displayed.
static
MakeScaleUpAnimation(View, Int32, Int32, Int32, Int32) : ActivityOptions
Create an ActivityOptions specifying an animation where the new activity is scaled from a small originating area of the screen to its final full representation.
static
MakeSceneTransitionAnimation(Activity, params Pair[]) : ActivityOptions
Create an ActivityOptions to transition between Activities using cross-Activity scene animations.
static
MakeSceneTransitionAnimation(Activity, View, String) : ActivityOptions
Create an ActivityOptions to transition between Activities using cross-Activity scene animations.
static
MakeTaskLaunchBehind() : ActivityOptions
If set along with Intent.
static
MakeThumbnailScaleUpAnimation(View, Bitmap, Int32, Int32) : ActivityOptions
Create an ActivityOptions specifying an animation where a thumbnail is scaled from a given position to the new activity window that is being started.
ToBundle() : Bundle
Returns the created options as a Bundle, which can be passed to Context.StartActivity(Intent,Bundle) and related methods.
Update(ActivityOptions)
Update the current values in this ActivityOptions from those supplied in otherOptions.