Android Guides | Samples

Android.AccessibilityServices.AccessibilityServiceInfo Class

This class describes an AccessibilityService.

See Also: AccessibilityServiceInfo

Syntax

[Android.Runtime.Register("android/accessibilityservice/AccessibilityServiceInfo", DoNotGenerateAcw=true)]
public class AccessibilityServiceInfo : Object, IParcelable, IDisposable

Remarks

This class describes an AccessibilityService. The system notifies an AccessibilityService for AccessibilityEvents according to the information encapsulated in this class.

Developer Guides

For more information about creating AccessibilityServices, read the Accessibility developer guide.

See Also

[Android Documentation]

Requirements

Namespace: Android.AccessibilityServices
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4

The members of Android.AccessibilityServices.AccessibilityServiceInfo are listed below.

See Also: Object

Public Constructors

Creates a new instance.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
CapabilityCanRequestEnhancedWebAccessibilityAccessibilityServiceCapabilities (4). Capability: This accessibility service can request enhanced web accessibility enhancements.
const
CapabilityCanRequestFilterKeyEventsAccessibilityServiceCapabilities (8). Capability: This accessibility service can request to filter the key event stream.
const
CapabilityCanRequestTouchExplorationAccessibilityServiceCapabilities (2). Capability: This accessibility service can request touch exploration mode in which touched items are spoken aloud and the UI can be explored via gestures.
const
CapabilityCanRetrieveWindowContentAccessibilityServiceCapabilities (1). Capability: This accessibility service can retrieve the active window content.
const
DefaultAccessibilityServiceFlags (1). If an AccessibilityService is the default for a given type.
const
FlagIncludeNotImportantViewsAccessibilityServiceFlags (2). If this flag is set the system will regard views that are not important for accessibility in addition to the ones that are important for accessibility.
const
FlagReportViewIdsAccessibilityServiceFlags (16). This flag requests that the AccessibilityNodeInfos obtained by an AccessibilityService contain the id of the source view.
const
FlagRequestEnhancedWebAccessibilityAccessibilityServiceFlags (8). This flag requests from the system to enable web accessibility enhancing extensions.
const
FlagRequestFilterKeyEventsAccessibilityServiceFlags (32). This flag requests from the system to filter key events.
const
FlagRequestTouchExplorationModeAccessibilityServiceFlags (4). This flag requests that the system gets into touch exploration mode.
const
FlagRetrieveInteractiveWindowsAccessibilityServiceFlags (64). This flag indicates to the system that the accessibility service wants to access content of all interactive windows.

Public Properties

[read-only]
CanRetrieveWindowContentBoolean. Whether this service can retrieve the current window's content.
[read-only]
CapabilitiesAccessibilityServiceCapabilities. Returns the bit mask of capabilities this accessibility service has such as being able to retrieve the active window content, etc.
[read-only]
static
CreatorIParcelableCreator.
[read-only]
DescriptionString. Gets the non-localized description of the accessibility service.
EventTypesEventTypes. The event types an AccessibilityService is interested in.
FeedbackTypeFeedbackFlags. The feedback type an AccessibilityService provides.
FlagsAccessibilityServiceFlags. This field represents a set of flags used for configuring an AccessibilityService.
[read-only]
IdString. The accessibility service id.
NotificationTimeoutInt64. The timeout after the most recent event of a given type before an AccessibilityService is notified.
PackageNamesIList<string>. The package names an AccessibilityService is interested in.
[read-only]
ResolveInfoResolveInfo. The service ResolveInfo.
[read-only]
SettingsActivityNameString. The settings activity name.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
CapabilityToString(AccessibilityServiceCapabilities) : String
Returns the string representation of a capability.
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static
FlagToString(AccessibilityServiceFlags) : String
Returns the string representation of a flag.
LoadDescription(PackageManager) : String
The localized description of the accessibility service.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.