語言

ApplicationStartInfo.LaunchModeSingleInstancePerTask 欄位

定義

警告

This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.

該活動只能作為任務的根活動執行,也就是創建該任務的第一個活動,因此任務中只會有一個這個活動的實例;但活動可以在不同任務中多次實例化。

[Android.Runtime.Register("LAUNCH_MODE_SINGLE_INSTANCE_PER_TASK", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.", true)]
public const Android.App.ApplicationStartInfoLaunchMode LaunchModeSingleInstancePerTask = 4;
[<Android.Runtime.Register("LAUNCH_MODE_SINGLE_INSTANCE_PER_TASK", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.", true)>]
val mutable LaunchModeSingleInstancePerTask : Android.App.ApplicationStartInfoLaunchMode

欄位值

Value = 4

實作

屬性

備註

該活動只能作為任務的根活動執行,也就是創建該任務的第一個活動,因此任務中只會有一個這個活動的實例;但活動可以在不同任務中多次實例化。

Android 參考資料。android.app.ApplicationStartInfo.LAUNCH_MODE_SINGLE_INSTANCE_PER_TASK

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

適用於