ApplicationStartInfo.LaunchMode 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
關於活動應該如何啟動的指示。
public Android.App.ApplicationStartInfoLaunchMode LaunchMode { [Android.Runtime.Register("getLaunchMode", "()I", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getLaunchMode", "()I", "", ApiSince=35)>]
member this.LaunchMode : Android.App.ApplicationStartInfoLaunchMode
屬性值
價值是以下之一:LAUNCH_MODE_STANDARD LAUNCH_MODE_SINGLE_TOP LAUNCH_MODE_SINGLE_INSTANCE LAUNCH_MODE_SINGLE_TASK LAUNCH_MODE_SINGLE_INSTANCE_PER_TASK
- 屬性
備註
關於活動應該如何啟動的指示。 有五種模式與意圖物件中的活動旗標結合,以判斷當活動被呼叫處理意圖時應發生什麼事。 模式:LAUNCH_MODE_STANDARD LAUNCH_MODE_SINGLE_TOP LAUNCH_MODE_SINGLE_INSTANCE LAUNCH_MODE_SINGLE_TASK LAUNCH_MODE_SINGLE_INSTANCE_PER_TASK 注意:欄位將為任意 getStartupState() 值設定。
Android 參考資料。android.app.ApplicationStartInfo.getLaunchMode
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。