Condividi tramite


AccessibilityService.ServiceMetaData Field

Definition

Name under which an AccessibilityService component publishes information about itself.

[Android.Runtime.Register("SERVICE_META_DATA")]
public const string ServiceMetaData;
[<Android.Runtime.Register("SERVICE_META_DATA")>]
val mutable ServiceMetaData : string

Field Value

Attributes

Remarks

Name under which an AccessibilityService component publishes information about itself. This meta-data must reference an XML resource containing an &lt;{@link android.R.styleable#AccessibilityService accessibility-service}&gt; tag. This is a sample XML file configuring an accessibility service:

&lt;accessibility-service
                android:accessibilityEventTypes="typeViewClicked|typeViewFocused"
                android:packageNames="foo.bar, foo.baz"
                android:accessibilityFeedbackType="feedbackSpoken"
                android:notificationTimeout="100"
                android:accessibilityFlags="flagDefault"
                android:settingsActivity="foo.bar.TestBackActivity"
                android:canRetrieveWindowContent="true"
                android:canRequestTouchExplorationMode="true"
                . . .
            /&gt;

Java documentation for android.accessibilityservice.AccessibilityService.SERVICE_META_DATA.

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