Class: InputWindow

InputWindow

new InputWindow(configs)

This window inherits the AppWindow, and modifies some properties different from the later.

This window inherits the AppWindow, and modifies some properties different from the later.

For some flow diagrams related to input management, please refer to https://wiki.mozilla.org/Gaia/System/InputManagement#Flow_Diagrams .

Parameters:
Name Type Description
configs OBject

The configuration of the input app

Source:

Extends

Members

closeAnimation :string

Different animation from the original window.

Different animation from the original window.

Type:
  • string
Source:

openAnimation :string

Different animation from the original window.

Different animation from the original window.

Type:
  • string
Source:

Methods

close(immediate)

Close the input window.

Close the input window.

Also, remove the handler of ready event because our caller might be closing this input window immediately after it has just called open() on this, and the ready event (required by the whole opening process) hasn't been triggered -- In that case, since we're closing, we must ignore that ready event too.

Parameters:
Name Type Description
immediate String

If the window has to be closed without animation

Source:

lockOrientation()

Input apps can never change orientation for whatever reasons.

Input apps can never change orientation for whatever reasons.

Source:

open(configs)

Open the input window, optionally replacing the layout before doing so.

Open the input window, optionally replacing the layout before doing so.

Parameters:
Name Type Description
configs Object

The configs of the layout

Source:

Events

_ready

ready is a one-time event and is triggered when the keyboard app signals its readiness through mozbrowserresize event.

ready is a one-time event and is triggered when the keyboard app signals its readiness through mozbrowserresize event. we only listen to this one-time ready event when we're opening the keyboard app through |setAsActiveInput()|; subsequent mozbrowserresize events (like keyboard app wants to resize itself) would not trigger this ready event.

Source:

appclose

Fired when the app's closing animation is ended.

Fired when the app's closing animation is ended.

Inherited From:
Source:

appclosing

Fired when the app is doing closing animation.

Fired when the app is doing closing animation.

Inherited From:
Source:

appopen

Fired when the app's opening animation is ended.

Fired when the app's opening animation is ended.

Inherited From:
Source:

appopening

Fired when the app is doing opening animation.

Fired when the app is doing opening animation.

Inherited From:
Source:

mozbrowserresize

Fired when the input app signals its readiness through window.resizeTo(), which translates to mozbrowserresized; or Fired when the input app wants to resize itself

.

Fired when the input app signals its readiness through window.resizeTo(), which translates to mozbrowserresized; or Fired when the input app wants to resize itself

Source: