Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeyboardInputComponent

键盘输入组件。

export

Hierarchy

Index

Constructors

constructor

Properties

Readonly entity

entity: Entity

Readonly id

id: number = ...

Readonly isDestroyed

isDestroyed: boolean = false

Readonly isDestroying

isDestroying: boolean = false

onKeyboardComplete

onKeyboardComplete: Delegate<KeyboardInputComponent, KeyboardEvent> = ...

onKeyboardConfirm

onKeyboardConfirm: Delegate<KeyboardInputComponent, KeyboardEvent> = ...

onKeyboardInput

onKeyboardInput: Delegate<KeyboardInputComponent, KeyboardEvent> = ...

onKeyboardShow

onKeyboardShow: Delegate<KeyboardInputComponent, {}> = ...

Readonly priority

priority: number = ...

Static KEYBOARD_EVENTS

KEYBOARD_EVENTS: typeof KeyboardEventNames = ...

键盘事件类型。

static
memberof

KeyboardInputComponent

Static Priority

Priority: { Align: number; Layout: number; Low: number; Physics: number; Render: number; Tool: number } = ...

Type declaration

  • Align: number
  • Layout: number
  • Low: number
  • Physics: number
  • Render: number
  • Tool: number

Static Optional Serialize

Serialize: (...args: any[]) => any

Type declaration

    • (...args: any[]): any
    • Parameters

      • Rest ...args: any[]

      Returns any

Accessors

active

  • get active(): boolean
  • set active(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

activeInHierarchy

  • get activeInHierarchy(): boolean
  • 在场景树中是否active

    readonly
    memberof

    Component

    Returns boolean

Methods

destroy

  • destroy(): void
  • Returns void

getTypeName

  • getTypeName(): string

hideKeyboard

  • hideKeyboard(config?: HideKeyboardArgument): void
  • Parameters

    • Optional config: HideKeyboardArgument

    Returns void

invokeKeyboardComplete

  • invokeKeyboardComplete(res: KeyboardEvent): void
  • Parameters

    • res: KeyboardEvent

    Returns void

invokeKeyboardConfirm

  • invokeKeyboardConfirm(res: KeyboardEvent): void
  • Parameters

    • res: KeyboardEvent

    Returns void

invokeKeyboardInput

  • invokeKeyboardInput(res: KeyboardEvent): void
  • Parameters

    • res: KeyboardEvent

    Returns void

invokeKeyboardShow

  • invokeKeyboardShow(): void
  • Returns void

isDetached

  • isDetached(): boolean
  • Returns boolean

resetProperties

  • resetProperties(): void

showKeyboard

  • showKeyboard(config: ShowKeyboardArgument): void
  • Parameters

    • config: ShowKeyboardArgument

    Returns void

updateKeyboard

  • updateKeyboard(config: UpdateKeyboardArgument): void
  • Parameters

    • config: UpdateKeyboardArgument

    Returns void

Generated using TypeDoc