ActivityManager.AppTask.SetExcludeFromRecents(Boolean) Method

Definition

Modify the Intent#FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS flag in the root Intent of this AppTask.

[Android.Runtime.Register("setExcludeFromRecents", "(Z)V", "GetSetExcludeFromRecents_ZHandler")]
public virtual void SetExcludeFromRecents (bool exclude);
[<Android.Runtime.Register("setExcludeFromRecents", "(Z)V", "GetSetExcludeFromRecents_ZHandler")>]
abstract member SetExcludeFromRecents : bool -> unit
override this.SetExcludeFromRecents : bool -> unit

Parameters

exclude
Boolean

If true, Intent#FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS will be set; otherwise, it will be cleared.

Attributes

Remarks

Modify the Intent#FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS flag in the root Intent of this AppTask.

Java documentation for android.app.ActivityManager.AppTask.setExcludeFromRecents(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.

Applies to