語言

ApplicationStartInfo.LaunchModeSingleInstance 欄位

定義

警告

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", 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 LaunchModeSingleInstance = 2;
[<Android.Runtime.Register("LAUNCH_MODE_SINGLE_INSTANCE", 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 LaunchModeSingleInstance : Android.App.ApplicationStartInfoLaunchMode

欄位值

Value = 2

實作

屬性

備註

系統會在新任務的根建立活動,或將活動定位於現有任務上,並以相同的親和力。 如果活動的實例已經存在且位於任務根源,系統會透過呼叫其 onNewIntent() 方法將意圖導向現有實例,而非建立新的實例。

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

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

適用於