Basic multiplayer with OAuth
Initialization
EscsService.invokeManaged(
EscsServiceConfig(
public_key, // String
base_url, // String
player_base_url // String
),
applicationContext, // Context,
invokeCallback // (status: String,
// gameId: String,
// tournamentId: String) -> Unit
) -> UnitEscsService.INSTANCE.invokeManaged(
new EscsServiceConfig(
public_key, //String
base_url, //String
player_base_url //String
),
getApplicationContext(),
(status, gameId, tournamentId) -> {
//... process result
return Unit.INSTANCE;
}
);val viewGroup =
window.decorView.findViewById(android.R.id.content) as ViewGroup
val btn = EscsButton(layoutInflater, viewGroup, applicationContext)
btn.attach()
val wv = EscsWebView(layoutInflater, viewGroup, applicationContext)
wv.attach()ViewGroup viewGroup = getWindow()
.getDecorView()
.findViewById(android.R.id.content);
EscsWebView escsWebView = new EscsWebView(getLayoutInflater(),
viewGroup,
getApplicationContext());
escsWebView.attach();
EscsButton escsButton = new EscsButton(getLayoutInflater(),
viewGroup,
getApplicationContext());
escsButton.attach();Registering in-game player id and metadata:
Forcefully open escs view
Starting the game

Ending the game
Clean Up
Performing actions before allowing users to join a tournament

Video chat/streaming integration
Supporting streaming with API level 29+
OAuth integration for fast user registration
Supporting user login using the game account (oAuth-like)
How to get a list of tournament participants
How to get the players and their tournament rewards
How to get player's rewards from the tournaments
Last updated