Android Guides | Samples

Android.App.LocalActivityManager Class

See Also: LocalActivityManager

Syntax

[Android.Runtime.Register("android/app/LocalActivityManager", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public class LocalActivityManager : Object

Remarks

Helper class for managing multiple running embedded activities in the same process. This class is not normally used directly, but rather created for you as part of the ActivityGroup implementation.

See Also

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1Deprecated since API level 13

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

See Also: Object

Public Constructors

Create a new LocalActivityManager for holding activities running within the given parent.

Protected Constructors

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

Public Properties

[read-only]
CurrentActivityActivity. Retrieve the Activity that is currently running.
[read-only]
CurrentIdString. Retrieve the ID of the activity that is currently running.

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

DestroyActivity(String, Boolean) : Window
Destroy the activity associated with a particular id.
DispatchCreate(Bundle)
Restore a state that was previously returned by LocalActivityManager.SaveInstanceState.
DispatchDestroy(Boolean)
Called by the container activity in its Activity.OnDestroy so that LocalActivityManager can perform the corresponding action on the activities it holds.
DispatchPause(Boolean)
Called by the container activity in its Activity.OnPause so that LocalActivityManager can perform the corresponding action on the activities it holds.
DispatchResume()
Called by the container activity in its Activity.OnResume so that LocalActivityManager can perform the corresponding action on the activities it holds.
DispatchStop()
Called by the container activity in its Activity.OnStop so that LocalActivityManager can perform the corresponding action on the activities it holds.
GetActivity(String) : Activity
Return the Activity object associated with a string ID.
RemoveAllActivities()
Remove all activities from this LocalActivityManager, performing an Activity.OnDestroy on any that are currently instantiated.
SaveInstanceState() : Bundle
Retrieve the state of all activities known by the group.
StartActivity(String, Intent) : Window
Start a new activity running in the group.