語言

Activity.StartNextMatchingActivity 方法

定義

多載

名稱 Description
StartNextMatchingActivity(Intent)

就像打電話 #startNextMatchingActivity(Intent, Bundle) 時沒有選項一樣。

StartNextMatchingActivity(Intent, Bundle)

啟動活動的特殊版本,用於替換其他活動組件時使用。

StartNextMatchingActivity(Intent)

就像打電話 #startNextMatchingActivity(Intent, Bundle) 時沒有選項一樣。

[Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Handler")]
public virtual bool StartNextMatchingActivity(Android.Content.Intent intent);
[<Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Handler")>]
abstract member StartNextMatchingActivity : Android.Content.Intent -> bool
override this.StartNextMatchingActivity : Android.Content.Intent -> bool

參數

intent
Intent

意圖前往下一個活動。 正確的行為必須與你開始自己活動的意圖相同;你唯一能做的改動就是裡面的額外內容。

傳回

回傳一個布林值,表示是否還有另一個活動要開始:如果有下一個活動要開始,則為 true;如果沒有,則為 false。 一般來說,如果回傳 true,你就會想要對自己呼叫 finish()。

屬性

備註

就像呼叫 startNextMatchingActivity(Intent, Bundle) 一樣,沒有任何選項。

Android 參考資料。android.app.Activity.startNextMatchingActivity

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

StartNextMatchingActivity(Intent, Bundle)

啟動活動的特殊版本,用於替換其他活動組件時使用。

[Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Landroid_os_Bundle_Handler")]
public virtual bool StartNextMatchingActivity(Android.Content.Intent intent, Android.OS.Bundle? options);
[<Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Landroid_os_Bundle_Handler")>]
abstract member StartNextMatchingActivity : Android.Content.Intent * Android.OS.Bundle -> bool
override this.StartNextMatchingActivity : Android.Content.Intent * Android.OS.Bundle -> bool

參數

intent
Intent

意圖前往下一個活動。 正確的行為必須與你開始自己活動的意圖相同;你唯一能做的改動就是裡面的額外內容。

options
Bundle

活動開始方式的額外選項。 更多細節請參見 android.content.Context#startActivity(Intent, Bundle) Context.startActivity(Intent, Bundle)}。

傳回

回傳一個布林值,表示是否還有另一個活動要開始:如果有下一個活動要開始,則為 true;如果沒有,則為 false。 一般來說,如果回傳 true,你就會想要對自己呼叫 finish()。

屬性

備註

啟動活動的特殊版本,用於替換其他活動組件時使用。 你可以用這個把意圖交給下一個能處理的活動。 通常你會在 onCreate(Bundle) 中呼叫這個,並由 getIntent() 回傳 Intent()。 注意:出於安全考量,傳入下一個活動的呼叫者身份將反映該中介應用程式的身份,除非它與原始呼叫者共享相同的 UID。 接收活動應驗證直接呼叫者,而非假設原始意圖發送者已被保留。

Android 參考資料。android.app.Activity.startNextMatchingActivity

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於