Phaser API Documentation

  Version: 
createContext(playerID)

Description:

Attempts to create or switch into a context between a specified player and the current player. This plugin will emit the create event once the context switch is completed. If the API call fails, such as if the player listed is not a Connected Player of the current player or if the player does not provide permission to enter the new context, then the plugin will emit a 'createfail' event.

Parameters:

name type description
playerID string

ID of the player.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Since: 3.13.0