Phaser API Documentation

  Version: 
chooseContext([options])

Description:

Opens a context selection dialog for the player. If the player selects an available context, the client will attempt to switch into that context, and emit the choose event if successful. Otherwise, if the player exits the menu or the client fails to switch into the new context, the choosefail event will be emitted.

Parameters:

name type arguments description
options ChooseContextConfig <optional>

An object specifying conditions on the contexts that should be offered.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Since: 3.13.0