語言

AssistContent.Intent 屬性

定義

若設定為 1,則回傳當前 #setIntent 值,否則為從 android.app.Activity#getIntent Activity.getIntent取得的預設意圖。 -或- 設定與內容相關的意圖,描述活動目前的頂層上下文。

public virtual Android.Content.Intent? Intent { [Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "GetGetIntentHandler", ApiSince=23)] get; [Android.Runtime.Register("setIntent", "(Landroid/content/Intent;)V", "GetSetIntent_Landroid_content_Intent_Handler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "GetGetIntentHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setIntent", "(Landroid/content/Intent;)V", "GetSetIntent_Landroid_content_Intent_Handler", ApiSince=23)>]
member this.Intent : Android.Content.Intent with get, set

屬性值

是為此內容明確設定的意圖,或是活動中預設的意圖。 其值可以是 null。 退回意圖可以在原地進行修改。

屬性

備註

財產取得者文件:

若設定為 1,則回傳當前 #setIntent 值,否則為從 android.app.Activity#getIntent Activity.getIntent取得的預設意圖。 可以現場修改。

Java 文件 android.app.assist.AssistContent.getIntent()。

屬性設定文件:

設定與內容相關的意圖,描述活動當前的頂層上下文。 如果其中包含與活動相關的資料參考,務必設定 Intent#FLAG_GRANT_READ_URI_PERMISSION 讓無障礙服務能夠存取。

Java 文件 android.app.assist.AssistContent.setIntent(android.content.Intent)。

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

適用於