AccessibilityServiceInfo Class

Definition

This class describes an AccessibilityService.

[Android.Runtime.Register("android/accessibilityservice/AccessibilityServiceInfo", DoNotGenerateAcw=true)]
public class AccessibilityServiceInfo : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/accessibilityservice/AccessibilityServiceInfo", DoNotGenerateAcw=true)>]
type AccessibilityServiceInfo = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
AccessibilityServiceInfo
Attributes
Implements

Remarks

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

<div class="special reference"> <h3>Developer Guides</h3>

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

</div>

Java documentation for android.accessibilityservice.AccessibilityServiceInfo.

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.

Constructors

AccessibilityServiceInfo()

Creates a new instance.

AccessibilityServiceInfo(IntPtr, JniHandleOwnership)

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

Fields

CapabilityCanControlMagnification
Obsolete.

Capability: This accessibility service can control display magnification.

CapabilityCanPerformGestures
Obsolete.

Capability: This accessibility service can perform gestures.

CapabilityCanRequestEnhancedWebAccessibility

This member is deprecated.

CapabilityCanRequestFilterKeyEvents
Obsolete.

Capability: This accessibility service can request to filter the key event stream.

CapabilityCanRequestFingerprintGestures
Obsolete.

Capability: This accessibility service can capture gestures from the fingerprint sensor

CapabilityCanRequestTouchExploration
Obsolete.

Capability: This accessibility service can request touch exploration mode in which touched items are spoken aloud and the UI can be explored via gestures.

CapabilityCanRetrieveWindowContent
Obsolete.

Capability: This accessibility service can retrieve the active window content.

CapabilityCanTakeScreenshot
Obsolete.

Capability: This accessibility service can take screenshot.

Default
Obsolete.

If an AccessibilityService is the default for a given type.

FlagEnableAccessibilityVolume
Obsolete.

This flag requests that all audio tracks system-wide with android.media.AudioAttributes#USAGE_ASSISTANCE_ACCESSIBILITY be controlled by the android.media.AudioManager#STREAM_ACCESSIBILITY volume.

FlagIncludeNotImportantViews
Obsolete.

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.

FlagInputMethodEditor
Obsolete.

This flag makes the AccessibilityService an input method editor with a subset of input method editor capabilities: get the android.view.inputmethod.InputConnection and get text selection change notifications.

FlagReportViewIds
Obsolete.

This flag requests that the AccessibilityNodeInfos obtained by an AccessibilityService contain the id of the source view.

FlagRequest2FingerPassthrough
Obsolete.

This flag requests that when when #FLAG_REQUEST_MULTI_FINGER_GESTURES is enabled, two-finger passthrough gestures are re-enabled.

FlagRequestAccessibilityButton
Obsolete.

This flag indicates to the system that the accessibility service requests that an accessibility button be shown within the system's navigation area, if available.

FlagRequestEnhancedWebAccessibility

This member is deprecated.

FlagRequestFilterKeyEvents
Obsolete.

This flag requests from the system to filter key events.

FlagRequestFingerprintGestures
Obsolete.

This flag requests that all fingerprint gestures be sent to the accessibility service.

FlagRequestMultiFingerGestures
Obsolete.

This flag requests that when when #FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled, multi-finger gestures are also enabled.

FlagRequestShortcutWarningDialogSpokenFeedback
Obsolete.

This flag requests that accessibility shortcut warning dialog has spoken feedback when dialog is shown.

FlagRequestTouchExplorationMode
Obsolete.

This flag requests that the system gets into touch exploration mode.

FlagRetrieveInteractiveWindows
Obsolete.

This flag indicates to the system that the accessibility service wants to access content of all interactive windows.

FlagSendMotionEvents
Obsolete.

This flag requests that when when #FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled, a service will receive the motion events for each successfully-detected gesture.

FlagServiceHandlesDoubleTap
Obsolete.

This flag requests that when #FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled, double tap and double tap and hold gestures are dispatched to the service rather than being handled by the framework.

Properties

CanRetrieveWindowContent
Obsolete.

Whether this service can retrieve the current window's content.

Capabilities

Returns the bit mask of capabilities this accessibility service has such as being able to retrieve the active window content, etc.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Description
Obsolete.

Gets the non-localized description of the accessibility service.

EventTypes

The event types an AccessibilityService is interested in.

FeedbackType

The feedback type an AccessibilityService provides.

Flags

This field represents a set of flags used for configuring an AccessibilityService.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
Id

The accessibility service id.

InteractiveUiTimeoutMillis

Get the recommended timeout for interactive controls. -or- Set the recommended time that interactive controls need to remain on the screen to support the user.

IsAccessibilityTool

Indicates if the service is used to assist users with disabilities.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
MotionEventSources

Returns the bit mask of android.view.InputDevice sources that the accessibility service wants to listen to for generic android.view.MotionEvents. -or- Sets the bit mask of android.view.InputDevice sources that the accessibility service wants to listen to for generic android.view.MotionEvents.

NonInteractiveUiTimeoutMillis

Get the recommended timeout for non-interactive controls. -or- Set the recommended time that non-interactive controls need to remain on the screen to support the user.

NotificationTimeout

The timeout, in milliseconds, after the most recent event of a given type before an AccessibilityService is notified.

PackageNames

The package names an AccessibilityService is interested in.

PeerReference (Inherited from Object)
ResolveInfo

The service ResolveInfo.

SettingsActivityName

The settings activity name.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

TileServiceName

Gets the name of android.service.quicksettings.TileService is associated with this accessibility service.

Methods

CapabilityToString(AccessibilityServiceCapabilities)

Returns the string representation of a capability.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()

To be added

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
FeedbackTypeToString(FeedbackFlags)

Returns the string representation of a feedback type.

FlagToString(AccessibilityServiceFlags)

Returns the string representation of a flag.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
LoadDescription(PackageManager)

The localized description of the accessibility service.

LoadIntro(PackageManager)

The localized intro of the accessibility service.

LoadIntroFormatted(PackageManager)

The localized intro of the accessibility service.

LoadSummary(PackageManager)

The localized summary of the accessibility service.

LoadSummaryFormatted(PackageManager)

The localized summary of the accessibility service.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to