ActivityOptions Class

Definition

Helper class for building an options Bundle that can be used with android.content.Context#startActivity(android.content.Intent, android.os.Bundle) Context.startActivity(Intent, Bundle) and related methods.

[Android.Runtime.Register("android/app/ActivityOptions", DoNotGenerateAcw=true)]
public class ActivityOptions : Java.Lang.Object
[<Android.Runtime.Register("android/app/ActivityOptions", DoNotGenerateAcw=true)>]
type ActivityOptions = class
    inherit Object
Inheritance
ActivityOptions
Attributes

Remarks

Helper class for building an options Bundle that can be used with android.content.Context#startActivity(android.content.Intent, android.os.Bundle) Context.startActivity(Intent, Bundle) and related methods.

Java documentation for android.app.ActivityOptions.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

ActivityOptions(IntPtr, JniHandleOwnership)

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

Fields

ExtraUsageTimeReport

A long in the extras delivered by #requestUsageTimeReport that contains the total time (in ms) the user spent in the app flow.

ExtraUsageTimeReportPackages

A Bundle in the extras delivered by #requestUsageTimeReport that contains detailed information about the time spent in each package associated with the app; each key is a package name, whose value is a long containing the time (in ms).

ModeBackgroundActivityStartAllowed
Obsolete.

Allow the PendingIntent to use the background activity start privileges.

ModeBackgroundActivityStartDenied
Obsolete.

Deny the PendingIntent to use the background activity start privileges.

ModeBackgroundActivityStartSystemDefined
Obsolete.

No explicit value chosen.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsShareIdentityEnabled

Returns whether the launching app has opted-in to sharing its identity with the launched activity.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LaunchBounds

Returns the bounds that should be used to launch the activity.

LaunchDisplayId

Gets the id of the display where activity should be launched.

LockTaskMode

Gets whether the activity is to be launched into LockTask mode.

PeerReference (Inherited from Object)
PendingIntentBackgroundActivityLaunchAllowed

Get PendingIntent activity is allowed to be started in the background if the caller can start background activities. -or- Set PendingIntent activity is allowed to be started in the background if the caller can start background activities.

PendingIntentBackgroundActivityStartMode

Get the mode for allowing or denying the senders privileges to start background activities to the PendingIntent.

PendingIntentCreatorBackgroundActivityStartMode

Returns the mode to start background activities granted by the creator of the PendingIntent.

SplashScreenStyle

Gets the style can be used for cold-launching an activity.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
MakeBasic()

Create a basic ActivityOptions that has no special animation associated with it.

MakeClipRevealAnimation(View, Int32, Int32, Int32, Int32)

Create an ActivityOptions specifying an animation where the new activity is revealed from a small originating area of the screen to its final full representation.

MakeCustomAnimation(Context, Int32, Int32)

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

MakeCustomAnimation(Context, Int32, Int32, Int32)

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

MakeLaunchIntoPip(PictureInPictureParams)

Creates an ActivityOptions instance that launch into picture-in-picture.

MakeScaleUpAnimation(View, Int32, Int32, Int32, Int32)

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.

MakeSceneTransitionAnimation(Activity, Pair[])

Create an ActivityOptions to transition between Activities using cross-Activity scene animations.

MakeSceneTransitionAnimation(Activity, View, String)

Create an ActivityOptions to transition between Activities using cross-Activity scene animations.

MakeTaskLaunchBehind()

If set along with Intent.

MakeThumbnailScaleUpAnimation(View, Bitmap, Int32, Int32)

Create an ActivityOptions specifying an animation where a thumbnail is scaled from a given position to the new activity window that is being started.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
RequestUsageTimeReport(PendingIntent)

Ask the system track that time the user spends in the app being launched, and report it back once done.

SetAppVerificationBundle(Bundle)

Set the Bundle that is provided to the app installer for additional verification if the call to Context#startActivity results in an app being installed.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetLaunchBounds(Rect)

Sets the bounds (window size and position) that the activity should be launched in.

SetLaunchDisplayId(Int32)

Sets the id of the display where the activity should be launched.

SetLockTaskEnabled(Boolean)

Sets whether the activity is to be launched into LockTask mode.

SetPendingIntentBackgroundActivityStartMode(BackgroundActivityStartMode)

Sets the mode for allowing or denying the senders privileges to start background activities to the PendingIntent.

SetPendingIntentCreatorBackgroundActivityStartMode(BackgroundActivityStartMode)

Allow a PendingIntent to use the privilege of its creator to start background activities.

SetShareIdentityEnabled(Boolean)

Sets whether the identity of the launching app should be shared with the activity.

SetSplashScreenStyle(Int32)

Sets the preferred splash screen style of the opening activities.

ToArray<T>() (Inherited from Object)
ToBundle()

Returns the created options as a Bundle, which can be passed to android.content.Context#startActivity(android.content.Intent, android.os.Bundle) Context.startActivity(Intent, Bundle) and related methods.

ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Update(ActivityOptions)

Update the current values in this ActivityOptions from those supplied in <var>otherOptions</var>.

Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to