View.IsImportantForAccessibility Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes whether this view should be exposed for accessibility.
public virtual bool IsImportantForAccessibility { [Android.Runtime.Register("isImportantForAccessibility", "()Z", "GetIsImportantForAccessibilityHandler")] get; }
[<get: Android.Runtime.Register("isImportantForAccessibility", "()Z", "GetIsImportantForAccessibilityHandler")>]
member this.IsImportantForAccessibility : bool
Whether the view is exposed for accessibility.
- Attributes
Computes whether this view should be exposed for accessibility. In general, views that are interactive or provide information are exposed while views that serve only as containers are hidden.
If an ancestor of this view has importance #IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
, this method returns false
.
Otherwise, the value is computed according to the view's #getImportantForAccessibility()
value: <ol> <li>#IMPORTANT_FOR_ACCESSIBILITY_NO
or #IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
, return false
<li>#IMPORTANT_FOR_ACCESSIBILITY_YES
, return true
<li>#IMPORTANT_FOR_ACCESSIBILITY_AUTO
, return true
if view satisfies any of the following: <ul> <li>Is actionable, e.g. #isClickable()
, #isLongClickable()
, #isContextClickable()
, #isScreenReaderFocusable()
, or #isFocusable()
<li>Has an AccessibilityDelegate
<li>Has an AccessibilityNodeProvider
<li>Has an interaction listener, e.g. OnTouchListener
, OnKeyListener
, etc. <li>Is an accessibility live region, e.g. #getAccessibilityLiveRegion()
is not #ACCESSIBILITY_LIVE_REGION_NONE
. </ul> <li>Has an accessibility pane title, see #setAccessibilityPaneTitle
</li> <li>Is an accessibility heading, see #setAccessibilityHeading(boolean)
.</li> </ol>
Java documentation for android.view.View.isImportantForAccessibility()
.
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.
Produkt | Wersje |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |