Options
显示所有项
  • 仅显示公有项
  • 显示保护/公有项
  • 显示所有项
Menu

accessibility模块

索引

变量

常量 accessibility

accessibility: Accessibility = ...

函数

back

  • back(): boolean
  • 返回 boolean

click

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

    • x: number
    • y: number

    返回 Promise<boolean>

clickText

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

    • text: string
    • index: number = 0

    返回 Promise<boolean>

currentPackage

  • currentPackage(clearCache?: boolean): string | null
  • 参数

    • clearCache: boolean = true

    返回 string | null

home

  • home(): boolean
  • 返回 boolean

inputText

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

    • text: string
    • index: number = 0

    返回 Promise<boolean>

lockScreen

  • lockScreen(): boolean
  • 返回 boolean

longClick

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

    • x: number
    • y: number

    返回 Promise<boolean>

openNotifications

  • openNotifications(): boolean
  • 返回 boolean

openQuickSettings

  • openQuickSettings(): boolean
  • 返回 boolean

performGesture

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

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

    返回 Promise<boolean>

performGestures

performGlobalAction

  • performGlobalAction(action: number | GlobalAction): boolean
  • 参数

    • action: number | GlobalAction

    返回 boolean

press

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

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

    返回 Promise<boolean>

scrollBackward

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

    • 可选 index: number

    返回 Promise<boolean>

scrollForward

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

    • 可选 index: number

    返回 Promise<boolean>

select

sendKeyCodeHeadsethook

  • sendKeyCodeHeadsethook(): boolean
  • 返回 boolean

setText

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

    • text: string
    • index: number = 0

    返回 Promise<boolean>

showLauncherAllApps

  • showLauncherAllApps(): boolean
  • 返回 boolean

swipe

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

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

    返回 Promise<boolean>

takeScreenshot

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

    • displayId: number = 0

    返回 Promise<Image>

togglePowerDialog

  • togglePowerDialog(): boolean
  • 返回 boolean

toggleRecents

  • toggleRecents(): boolean
  • 返回 boolean

toggleSplitScreen

  • toggleSplitScreen(): boolean
  • 返回 boolean

triggerAccessibilityButton

  • triggerAccessibilityButton(): boolean
  • 返回 boolean

triggerAccessibilityShortcut

  • triggerAccessibilityShortcut(): boolean
  • 返回 boolean