Udostępnij za pośrednictwem


View.ImportantForContentCapture Property

Definition

Gets the mode for determining whether this view is important for content capture. -or- Sets the mode for determining whether this view is considered important for content capture.

public virtual int ImportantForContentCapture { [Android.Runtime.Register("getImportantForContentCapture", "()I", "GetGetImportantForContentCaptureHandler", ApiSince=30)] get; [Android.Runtime.Register("setImportantForContentCapture", "(I)V", "GetSetImportantForContentCapture_IHandler", ApiSince=30)] set; }
[<get: Android.Runtime.Register("getImportantForContentCapture", "()I", "GetGetImportantForContentCaptureHandler", ApiSince=30)>]
[<set: Android.Runtime.Register("setImportantForContentCapture", "(I)V", "GetSetImportantForContentCapture_IHandler", ApiSince=30)>]
member this.ImportantForContentCapture : int with get, set

Property Value

#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO by default, or value passed to #setImportantForContentCapture(int).

Attributes

Remarks

Property getter documentation:

Gets the mode for determining whether this view is important for content capture.

See #setImportantForContentCapture(int) and #isImportantForContentCapture() for more info about this mode.

Java documentation for android.view.View.getImportantForContentCapture().

Property setter documentation:

Sets the mode for determining whether this view is considered important for content capture.

The platform determines the importance for autofill automatically but you can use this method to customize the behavior. Typically, a view that provides text should be marked as #IMPORTANT_FOR_CONTENT_CAPTURE_YES.

Java documentation for android.view.View.setImportantForContentCapture(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to