語言

ActivityManager.AppTask.SetExcludeFromRecents(Boolean) 方法

定義

修改 Intent#FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS 這個 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

參數

exclude
Boolean

若屬實, Intent#FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS 則會設定;否則將被清除。

屬性

備註

修改這個 AppTask 根意圖中的 Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS 標誌。

Android 參考資料。android.app.ActivityManager.AppTask.setExcludeFromRecents

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於