PreferenceActivity.OnBuildStartFragmentIntent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在單窗格模式下呼叫, #startWithFragment(String, Bundle, Fragment, int, int, int) 建立意圖以啟動顯示所選片段的新活動。
[Android.Runtime.Register("onBuildStartFragmentIntent", "(Ljava/lang/String;Landroid/os/Bundle;II)Landroid/content/Intent;", "GetOnBuildStartFragmentIntent_Ljava_lang_String_Landroid_os_Bundle_IIHandler")]
public virtual Android.Content.Intent? OnBuildStartFragmentIntent(string? fragmentName, Android.OS.Bundle? args, int titleRes, int shortTitleRes);
[<Android.Runtime.Register("onBuildStartFragmentIntent", "(Ljava/lang/String;Landroid/os/Bundle;II)Landroid/content/Intent;", "GetOnBuildStartFragmentIntent_Ljava_lang_String_Landroid_os_Bundle_IIHandler")>]
abstract member OnBuildStartFragmentIntent : string * Android.OS.Bundle * int * int -> Android.Content.Intent
override this.OnBuildStartFragmentIntent : string * Android.OS.Bundle * int * int -> Android.Content.Intent
參數
- fragmentName
- String
要顯示的碎片名稱。
- args
- Bundle
可選擇性參數供給碎片。
- titleRes
- Int32
可選地顯示本項目的產權資源ID。
- shortTitleRes
- Int32
本項目可選擇提供簡短標題的資源ID。
傳回
回傳一個意圖,可啟動以顯示該片段。
- 屬性
備註
在單窗格模式下呼叫, #startWithFragment(String, Bundle, Fragment, int, int, int) 建立意圖以啟動顯示所選片段的新活動。 預設實作會建構一個意圖,重新啟動當前活動並以適當的參數顯示該片段。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。