mergGKLocalPlayerAuthenticated

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
mergGKLocalPlayerAuthenticated <pPlayerID>, <pPlayerAlias>, <pPlayerDisplayName>, <pPlayerUnderAge>
Associationsmerggk
Summary

Sent to the control that called mergGKAuthenticateLocalPlayer whenever a new local player is authenticated

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pPlayerID

the ID for the local player.

pPlayerAlias

the alias for the local player.

pPlayerDisplayName

the display name for the local player.

pPlayerUnderAge

true if the player is under age.

Example
on preOpenStack
  if the environment = "mobile" then
     mergGKAuthenticateLocalPlayer
  end if
end preOpenStack

on mergGKLocalPlayerAuthenticated pPlayerID,pPlayerAlias,pPlayerDisplayName
  -- load state for this player
end mergGKLocalPlayerAuthenticated
Description

The logged in player in Game Center may be changed if the user closes or suspends your app. Your app should be prepared to handle multiple states for different users based on the player id. In a multi-tasking app this message may be sent more than once.

Tagsexternals