Phaser API Documentation

  Version: 
switchContext(contextID)

Description:

Request a switch into a specific context. If the player does not have permission to enter that context, or if the player does not provide permission for the game to enter that context, this will emit a switchfail event.

Otherwise, the plugin will emit the switch event when the game has switched into the specified context.

Parameters:

name type description
contextID string

The ID of the desired context.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Since: 3.13.0