Language

Activity.ShouldUpRecreateTask(Intent) メソッド

定義

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 リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象