目录

Lifecycle

Starting from version 1078, the API prefix has been changed from hbs to qg. The original prefix hbs is still supported.

Definition

API

Description

qg.exitApplication(Object object)

Exits the current quick game.

qg.getLaunchOptionsSync() (1103+)

Obtains the launch parameters of the quick game.

qg.onHide(function callback)

Listens for the event that a quick game is switched to the background.

qg.offHide(function callback)

Stops listening for the event that a quick game is switched to the background.

qg.onShow(function callback)

Listens for the event that a quick game is switched to the foreground.

qg.offShow(function callback)

Stops listening for the event that a quick game is switched to the foreground.

[h2]qg.exitApplication(Object object)

[h2]qg.getLaunchOptionsSync() (1103+)

[h2]qg.onHide(function callback)

[h2]qg.offHide(function callback)

[h2]qg.onShow(function callback)

[h2]qg.offShow(function callback)