Google 致力于为黑人社区推动种族平等。查看具体举措

AccessibilityEventCompat

class AccessibilityEventCompat
kotlin.Any
   ↳ androidx.core.view.accessibility.AccessibilityEventCompat

Helper for accessing features in AccessibilityEvent.

Summary

Constants
static Int

Change type for TYPE_WINDOW_CONTENT_CHANGED event: The node's content description changed.

static Int

Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED event: The node has a pane title, and either just appeared or just was assigned a title when it had none before.

static Int

Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED event: Can mean one of two slightly different things.

static Int

Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED event: The node's pane title changed.

static Int

Change type for AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED event: state description of the node as returned by AccessibilityNodeInfo#getStateDescription was changed.

static Int

Change type for TYPE_WINDOW_CONTENT_CHANGED event: A node in the subtree rooted at the source node was added or removed.

static Int

Change type for TYPE_WINDOW_CONTENT_CHANGED event: The node's text changed.

static Int

Change type for TYPE_WINDOW_CONTENT_CHANGED event: The type of change is not defined.

static Int

Mask for AccessibilityEvent all types.

static Int

Represents the event of an application making an announcement.

static Int

Represents the event of the assistant currently reading the users screen context.

static Int

Represents the event of ending gesture detection.

static Int

Represents the event of beginning gesture detection.

static Int

Represents the event of ending a touch exploration gesture.

static Int

Represents the event of starting a touch exploration gesture.

static Int

Represents the event of the user ending to touch the screen.

static Int

Represents the event of the user starting to touch the screen.

static Int

Represents the event of gaining accessibility focus.

static Int

Represents the event of clearing accessibility focus.

static Int

Represents the event of a context click on a android.view.View.

static Int

Represents the event of a hover enter over a android.view.View.

static Int

Represents the event of a hover exit over a android.view.View.

static Int

Represents the event of scrolling a view.

static Int

Represents the event of changing the selection in an android.widget.EditText.

static Int

Represents the event of traversing the text of a view at a given movement granularity.

static Int

Represents the event change in the windows shown on the screen.

static Int

Represents the event of changing the content of a window.

Public methods
static Unit

Appends an android.view.accessibility.AccessibilityRecord to the end of event records.

static AccessibilityRecordCompat!

Creates an AccessibilityRecordCompat from an AccessibilityEvent that can be used to manipulate the event properties defined in android.view.accessibility.AccessibilityRecord.

static Int

Gets the performed action that triggered this event.

static Int

Gets the bit mask of change types signaled by an TYPE_WINDOW_CONTENT_CHANGED event.

static Int

Gets the movement granularity that was traversed.

static AccessibilityRecordCompat!
getRecord(event: AccessibilityEvent!, index: Int)

Gets the record at a given index.

static Int

Gets the number of records contained in the event.

static Unit
setAction(event: AccessibilityEvent!, action: Int)

Sets the performed action that triggered this event.

static Unit

Sets the bit mask of node tree changes signaled by an TYPE_WINDOW_CONTENT_CHANGED event.

static Unit

Sets the movement granularity that was traversed.

Constants

CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION

static val CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION: Int

Change type for TYPE_WINDOW_CONTENT_CHANGED event: The node's content description changed.

Value: 0x00000004

CONTENT_CHANGE_TYPE_PANE_APPEARED

static val CONTENT_CHANGE_TYPE_PANE_APPEARED: Int

Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED event: The node has a pane title, and either just appeared or just was assigned a title when it had none before.

Value: 0x00000010

CONTENT_CHANGE_TYPE_PANE_DISAPPEARED

static val CONTENT_CHANGE_TYPE_PANE_DISAPPEARED: Int

Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED event: Can mean one of two slightly different things. The primary meaning is that the node has a pane title, and was removed from the node hierarchy. It can also be sent if the pane title is set to null after it contained a title. No source will be returned if the node is no longer on the screen. To make the change more clear for the user, the first entry in AccessibilityRecord#getText() can return the value that would have been returned by getSource().getPaneTitle().

Value: 0x00000020

CONTENT_CHANGE_TYPE_PANE_TITLE

static val CONTENT_CHANGE_TYPE_PANE_TITLE: Int

Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED event: The node's pane title changed.

Value: 0x00000008

CONTENT_CHANGE_TYPE_STATE_DESCRIPTION

static val CONTENT_CHANGE_TYPE_STATE_DESCRIPTION: Int

Change type for AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED event: state description of the node as returned by AccessibilityNodeInfo#getStateDescription was changed.

Value: 0x00000040

CONTENT_CHANGE_TYPE_SUBTREE

static val