Share via


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.content.Intent)Java ドキュメント。

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

適用対象