LocalActivityManager.DestroyActivity(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Destroy the activity associated with a particular id.
[Android.Runtime.Register("destroyActivity", "(Ljava/lang/String;Z)Landroid/view/Window;", "GetDestroyActivity_Ljava_lang_String_ZHandler")]
[System.Obsolete("deprecated")]
public virtual Android.Views.Window? DestroyActivity (string? id, bool finish);
[<Android.Runtime.Register("destroyActivity", "(Ljava/lang/String;Z)Landroid/view/Window;", "GetDestroyActivity_Ljava_lang_String_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member DestroyActivity : string * bool -> Android.Views.Window
override this.DestroyActivity : string * bool -> Android.Views.Window
Parameters
- id
- String
Unique identifier of the activity to be destroyed
- finish
- Boolean
If true, this activity will be finished, so its id and all state are removed from the group.
Returns
Returns the window that was used to display the activity, or null if there was none.
- Attributes
Remarks
Destroy the activity associated with a particular id. This activity will go through the normal lifecycle events and fine onDestroy(), and then the id removed from the group.
Java documentation for android.app.LocalActivityManager.destroyActivity(java.lang.String, boolean)
.
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.