Activity.ShouldUpRecreateTask(Intent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果使用 targetIntent 從此活動巡覽 'up' 時,應用程式應該重新建立工作,則傳回 true。
[Android.Runtime.Register("shouldUpRecreateTask", "(Landroid/content/Intent;)Z", "GetShouldUpRecreateTask_Landroid_content_Intent_Handler")]
public virtual bool ShouldUpRecreateTask (Android.Content.Intent? targetIntent);
[<Android.Runtime.Register("shouldUpRecreateTask", "(Landroid/content/Intent;)Z", "GetShouldUpRecreateTask_Landroid_content_Intent_Handler")>]
abstract member ShouldUpRecreateTask : Android.Content.Intent -> bool
override this.ShouldUpRecreateTask : Android.Content.Intent -> bool
參數
- targetIntent
- Intent
表示向上流覽目標目的地的意圖
傳回
如果巡覽應該重新建立新的工作堆疊,則為 true;如果應該針對目的地使用相同的工作,則為 false
- 屬性
備註
如果使用 targetIntent 從此活動巡覽 'up' 時,應用程式應該重新建立工作,則傳回 true。
如果這個方法傳回 false,應用程式可以使用相同的參數來簡單呼叫 #navigateUpTo(Intent)
,以正確執行流覽。 如果此方法傳回 false,應用程式應該使用 TaskStackBuilder
或另一個類似的機制來合成新的工作堆疊,以執行流覽。
的 android.app.Activity.shouldUpRecreateTask(android.content.Intent)
JAVA 檔。
此頁面的部分是根據 原始碼專案所建立和共用的工作進行修改,並根據中所述的詞彙使用。