new SoftwareButtonManager()
SoftwareButtonManager manages a home button for devides without
physical home buttons. The software home button will display at the bottom
of the screen and is meant to function in the same way as a hardware
home button.
Members
-
enabled :Boolean
-
Whether or not the SoftwareButtonManager is enabled.
-
hasHardwareHomeButton :Boolean
-
True if the device has a hardware home button.
-
height
-
Whether or not the SoftwareButtonManager is enabled.
-
overrideFlag :Boolean
-
Enables the software button if hasHardwareHomeButton is false.
Methods
-
dispatchResizeEvent(type)
-
Dispatches an event so screens can resize themselves after a change
in the state of the software home button.Parameters:
Name Type Description type String The type of softwareButtonEvent.
-
handleEvent(evt)
-
General event handler interface.
Parameters:
Name Type Description evt DOMEvent The event.
-
publish(type)
-
Shortcut to publish a custom software button event.
Parameters:
Name Type Description type String The type of softwareButtonEvent.
-
start()
-
Starts the SoftwareButtonManager instance.
-
toggle()
-
Toggles the status of the software button.