語言

ViewStructure 類別

定義

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

[Android.Runtime.Register("android/view/ViewStructure", ApiSince=23, DoNotGenerateAcw=true)]
public abstract class ViewStructure : Java.Lang.Object
[<Android.Runtime.Register("android/view/ViewStructure", ApiSince=23, DoNotGenerateAcw=true)>]
type ViewStructure = class
    inherit Object
繼承
ViewStructure
屬性

備註

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

想了解更多如何在應用程式中使用自動填充,請閱讀自動填充框架的指南。

Java 文件 android.view.ViewStructure。

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

建構函式

名稱 Description
ViewStructure()

初始化檢視結構類型的新實例。

ViewStructure(IntPtr, JniHandleOwnership)

為現有的 Java Native 介面物件參考建立一個受管理的對等節點。

欄位

名稱 Description
ExtraVirtualStructureType

用於撰寫產生子節點虛擬結構的視圖類型。

ExtraVirtualStructureVersionNumber

用於指定產生自身及其子節點虛擬結構的視圖版本的鍵

屬性

名稱 Description
AutofillId

取得或設定與此節點相關的 AutofillId。

ChildCount

回傳由 setChildCount(int) 設定的子節點。

Class

回傳此 Object的執行時類別。

(繼承來源 Object)
Extras

獲取與此視圖結構相關的額外資料;回傳的 Bundle 是可變的,讓你可以查看並修改其內容。 放在 Bundle 中的鍵應使用適當的命名空間前綴(例如 com.google.MY_KEY),以避免衝突。

Handle

底層 Android 實例的帳號。

(繼承來源 Object)
HasExtras

如果 getExtras() 已被用於創建額外內容,則會回傳 true。

Hint

取得或設定此視圖結構所提供的提示文字。

HintFormatted

取回 setHint(CharSequence) 所設定的最後提示。

JniIdentityHashCode

取得由互通執行時指派給此 Java 對等端的身份雜湊碼。

(繼承來源 Object)
JniManagedPeerState

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
JniPeerMembers

取得 .NET 用於 Android 綁定執行時的 JNI 節點元資料。

PeerReference

取得這個 Java 節點的 JNI 物件參考。

(繼承來源 Object)
PendingCredentialCallback

會與 callback 此節點相關聯。

PendingCredentialRequest

會與 GetCredentialRequest 此節點相關聯。

Text

取得或設定此視圖結構所提供的文字。

TextFormatted

取回最後一個集合Text(CharSequence)。

TextSelectionEnd

取回由 setText(CharSequence,int,int) 所設定的最後一個選擇端。

TextSelectionStart

檢索由 setText(CharSequence,int,int) 所設定的最後一個選擇開始。

ThresholdClass

取得 .NET 用於 Android 綁定執行時的 JNI 類別處理柄。

ThresholdType

取得 .NET 用於 Android 綁定執行時所使用的受管理型別。

方法

名稱 Description
AddChildCount(Int32)

將此視圖的子節點數加進去。

AsyncCommit()

填寫完 a ViewStructure#asyncNewChild後再呼叫 。

AsyncNewChild(Int32)

類似 #newChild,但允許呼叫者非同步地填入返回的子節點。

ClearCredentialManagerRequest()

清除先前設定的憑證請求 ViewStructure#setPendingCredentialRequest(GetCredentialRequest, OutcomeReceiver)

Clone()

建立並回傳此物件的副本。

(繼承來源 Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
Dispose()

釋放該 Java 節點所持有的資源。

(繼承來源 Object)
Dispose(Boolean)

釋放該 Java 節點所持有的資源。

(繼承來源 Object)
DisposeUnlessReferenced()

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
Equals(Object)

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
Equals(Object)

表示是否有其他物體「等同」於此物。

(繼承來源 Object)
GetHashCode()

回傳物件的雜湊碼值。

(繼承來源 Object)
JavaFinalize()
已淘汰.

當垃圾回收判定該物件不再有相關參考時,由垃圾回收器呼叫。

(繼承來源 Object)
NewChild(Int32)

在此檢視中建立一個新子 ViewStructure 節點,並將子節點 <列表放入 var>index</var>。

NewHtmlInfoBuilder(String)

為該 HTML 標籤建立新 HtmlInfo.Builder 檔案。

Notify()

喚醒一個正在該物件監視器上等待的執行緒。

(繼承來源 Object)
NotifyAll()

喚醒所有等待該物件監視器的執行緒。

(繼承來源 Object)
SetAccessibilityFocused(Boolean)

根據 ,設定此視圖 View#isAccessibilityFocused View.isAccessibilityFocused()的無障礙焦點狀態。

SetActivated(Boolean)

根據 設定此視圖 View#isActivated View.isActivated()的啟動狀態。

SetAlpha(Single)

設定一個 alpha 轉換,應用於此視圖,如 View#getAlpha View.getAlpha()。

SetAutofillHints(String[])

設定提示,幫助自動填充服務選擇適當的資料來填滿視圖。

SetAutofillId(AutofillId, Int32)

為這個虛擬節點設定 。AutofillId

SetAutofillOptions(ICharSequence[])

設定可用來自動填充該節點的選項。

SetAutofillOptions(String[])

設定可用來自動填充該節點的選項。

SetAutofillType(AutofillType)

設定 the View#getAutofillType() 可以用來自動填充這個節點。

SetAutofillValue(AutofillValue)

設定 代表 AutofillValue 該節點當前值。

SetCheckable(Boolean)

設定此視圖的可檢查狀態,例如是否實作該 android.widget.Checkable 介面。

SetChecked(Boolean)

設定此視圖的檢查狀態,例如 android.widget.Checkable#isChecked Checkable.isChecked()。

SetClassName(String)

根據 設定視圖 View#getAccessibilityClassName View.getAccessibilityClassName()的類別名稱。

SetClickable(Boolean)

根據 ,設定此視圖 View#isClickable View.isClickable()的可點擊狀態。

SetContentDescription(ICharSequence)

設定視圖的內容描述,依照 View#getContentDescription View.getContentDescription()。

SetContentDescription(String)

設定視圖的內容描述,依照 View#getContentDescription View.getContentDescription()。

SetContextClickable(Boolean)

根據 設定此視圖的上下文可點擊狀態。View#isContextClickable View.isContextClickable()

SetDataIsSensitive(Boolean)

設定該節點的資料是否敏感;如果是,那就是內容(文字、自動填充值等)。

SetDimens(Int32, Int32, Int32, Int32, Int32, Int32)

設定這個視角的基本尺寸。

SetElevation(Single)

設定視角的視角(陰影),依照 View#getZ View.getZ()。

SetEnabled(Boolean)

依照 View#isEnabled View.isEnabled()設定此視圖的啟用狀態。

SetFocusable(Boolean)

根據 設定此視圖 View#isFocusable View.isFocusable()的可聚焦狀態。

SetFocused(Boolean)

根據 設定此視圖 View#isFocused View.isFocused()的聚焦狀態。

SetHandle(IntPtr, JniHandleOwnership)

設定 Handle 屬性。

(繼承來源 Object)
SetHintIdEntry(String)

設定用於設定與此視圖相關的提示的識別碼。

SetHtmlInfo(ViewStructure+HtmlInfo)

當該節點代表 HTML 元素時,會設定其 HTML 屬性。 只有在節點用於自動填充時才應該設定——當用於輔助時會被忽略。

SetId(Int32, String, String, String)

請設定此視圖的識別碼。

SetImportantForAutofill(Int32)

設定 View#setImportantForAutofill(int) importantForAutofill mode 與該節點相關聯的視圖。

SetInputType(Int32)

設定該節點的 android.text.InputType 位元。

SetLocaleList(LocaleList)

設定與此節點相關的位置列表。

SetLongClickable(Boolean)

根據 ,設定此視圖 View#isLongClickable View.isLongClickable()的長可點擊狀態。

SetMaxTextEms(Int32)

在支援時,設定與此視圖相關文本的最大寬度(以 ems 為單位)。

SetMaxTextLength(Int32)

設定與此視圖相關文本的最大長度(若支援時)。

SetMinTextEms(Int32)

設定與此視圖相關文本的最小寬度(EMS),若支援此視圖。

SetOpaque(Boolean)

依照 View#isOpaque View.isOpaque()設定此視圖的不透明狀態。

SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
SetPendingCredentialRequest(GetCredentialRequest, IOutcomeReceiver)

設定憑證請求,直到 android.credentials.CredentialManager 該節點聚焦時觸發

SetReceiveContentMimeTypes(String[])

設定此觀點所接受的 MIME 類型。

SetSelected(Boolean)

依照 View#isSelected View.isSelected()。

SetText(ICharSequence, Int32, Int32)

但 #setText(CharSequence) 同時有主動選擇,從 <var>selectionStart</var> 延伸到 <var>selectionEnd</var>。

SetText(String, Int32, Int32)

但 #setText(CharSequence) 同時有主動選擇,從 <var>selectionStart</var> 延伸到 <var>selectionEnd</var>。

SetTextIdEntry(String)

設定用於設定與此視圖相關聯文字的識別碼。

SetTextLines(Int32[], Int32[])

為先前透過 提供 #setText(CharSequence)過的測試設定行資訊。

SetTextStyle(Single, Int32, Int32, AssistTextStyle)

明確設定先前設定為 #setText的文字的預設全域樣式資訊。

SetTransformation(Matrix)

依照 View#getMatrix View.getMatrix(),設定與此視圖相關的轉換矩陣,若無則設為零。

SetVisibility(ViewStates)

根據 設定此視圖 View#getVisibility View.getVisibility()的可見性狀態。

SetWebDomain(String)

設定由此節點所代表的 Web 網域。

ToArray<T>()

從這個 Java 陣列包裝器建立一個受管理陣列。

(繼承來源 Object)
ToString()

回傳物件的字串表示。

(繼承來源 Object)
UnregisterFromRuntime()

將此 Java 節點從互通執行時中取消註冊。

(繼承來源 Object)
Wait()

導致目前執行緒等待被喚醒,通常是透過 <em>通知</><em 或 em>中斷</em> 來喚醒。

(繼承來源 Object)
Wait(Int64, Int32)

會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。

(繼承來源 Object)
Wait(Int64)

會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。

(繼承來源 Object)

明確介面實作

名稱 Description
IJavaPeerable.Disposed()

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
IJavaPeerable.Finalized()

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

(繼承來源 JavaObject)

擴充方法

名稱 Description
GetJniTypeName(IJavaPeerable)

取得實例 self類型的 JNI 名稱。

JavaAs<TResult>(IJavaPeerable)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

JavaCast<TResult>(IJavaObject)

執行 Android 執行時檢查型別轉換。

JavaCast<TResult>(IJavaObject)

ViewStructure 是一個容器,用來儲存由 View#onProvideStructure View.onProvideStructure 和 View#onProvideAutofillStructure View.onProvideAutofillStructure產生的額外每次檢視資料。

TryJavaCast<TResult>(IJavaPeerable, TResult)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

適用於