Options
All
  • Public
  • Public/Protected
  • All
Menu

Module accessibility

Index

Variables

Const accessibility

accessibility: Accessibility = ...

Functions

back

  • back(): boolean
  • Returns boolean

click

  • click(x: number, y: number): Promise<boolean>
  • Parameters

    • x: number
    • y: number

    Returns Promise<boolean>

clickText

  • clickText(text: string, index?: number): Promise<boolean>
  • Parameters

    • text: string
    • index: number = 0

    Returns Promise<boolean>

currentPackage

  • currentPackage(clearCache?: boolean): string | null
  • Parameters

    • clearCache: boolean = true

    Returns string | null

home

  • home(): boolean
  • Returns boolean

inputText

  • inputText(text: string, index?: number): Promise<boolean>
  • Parameters

    • text: string
    • index: number = 0

    Returns Promise<boolean>

lockScreen

  • lockScreen(): boolean
  • Returns boolean

longClick

  • longClick(x: number, y: number): Promise<boolean>
  • Parameters

    • x: number
    • y: number

    Returns Promise<boolean>

openNotifications

  • openNotifications(): boolean
  • Returns boolean

openQuickSettings

  • openQuickSettings(): boolean
  • Returns boolean

performGesture

  • performGesture(points: Point[], duration: number, delay?: number): Promise<boolean>
  • Parameters

    • points: Point[]
    • duration: number
    • delay: number = 0

    Returns Promise<boolean>

performGestures

performGlobalAction

  • performGlobalAction(action: number | GlobalAction): boolean
  • Parameters

    • action: number | GlobalAction

    Returns boolean

press

  • press(x: number, y: number, duration: number): Promise<boolean>
  • Parameters

    • x: number
    • y: number
    • duration: number

    Returns Promise<boolean>

scrollBackward

  • scrollBackward(index?: number): Promise<boolean>
  • Parameters

    • Optional index: number

    Returns Promise<boolean>

scrollForward

  • scrollForward(index?: number): Promise<boolean>
  • Parameters

    • Optional index: number

    Returns Promise<boolean>

select

sendKeyCodeHeadsethook

  • sendKeyCodeHeadsethook(): boolean
  • Returns boolean

setText

  • setText(text: string, index?: number): Promise<boolean>
  • Parameters

    • text: string
    • index: number = 0

    Returns Promise<boolean>

showLauncherAllApps

  • showLauncherAllApps(): boolean
  • Returns boolean

swipe

  • swipe(x1: number, y1: number, x2: number, y2: number, duration: number): Promise<boolean>
  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • duration: number

    Returns Promise<boolean>

takeScreenshot

  • takeScreenshot(displayId?: number): Promise<Image>
  • Parameters

    • displayId: number = 0

    Returns Promise<Image>

togglePowerDialog

  • togglePowerDialog(): boolean
  • Returns boolean

toggleRecents

  • toggleRecents(): boolean
  • Returns boolean

toggleSplitScreen

  • toggleSplitScreen(): boolean
  • Returns boolean

triggerAccessibilityButton

  • triggerAccessibilityButton(): boolean
  • Returns boolean

triggerAccessibilityShortcut

  • triggerAccessibilityShortcut(): boolean
  • Returns boolean