Class ISN_GKPlayer
An object that provides information about a player on Game Center.
Every player account on Game Center is permanently assigned a unique player identifier string. Your game should use this string to store per-player information or to disambiguate between players
Namespace: SA.iOS.GameKit
Assembly: cs.temp.dll.dll
Syntax
public class ISN_GKPlayer : ISN_NativeObject
Properties
Alias
A player’s alias is used when a player is not a friend of the local player. Typically, you never display the alias string directly in your user interface. Instead use the DisplayName property
Declaration
public string Alias { get; }
Property Value
Type | Description |
---|---|
System.String |
DisplayName
The display name for a player depends on whether the player is a friend of the local player authenticated on the device. If the player is a friend of the local player, then the display name is the actual name of the player. If the player is not a friend, then the display name is the player’s alias.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
GamePlayerId
Game player Id. See https://developer.apple.com/videos/play/wwdc2019/615/
Declaration
public string GamePlayerId { get; }
Property Value
Type | Description |
---|---|
System.String |
GuestIdentifier
A developer created string used to identify a guest player.
Declaration
public string GuestIdentifier { get; }
Property Value
Type | Description |
---|---|
System.String |
PlayerId
A unique identifier associated with a player. The player identifier should never be displayed to the player. Use it only as a way to identify a particular player. Do not make assumptions about the contents of the player identifier string. Its format and length are subject to change.
Declaration
public string PlayerId { get; }
Property Value
Type | Description |
---|---|
System.String |
PlayerID
Declaration
public string PlayerID { get; }
Property Value
Type | Description |
---|---|
System.String |
ScopedIDsArePersistent
Scoped Ids Are Persistent. See https://developer.apple.com/videos/play/wwdc2019/615/
Declaration
public bool ScopedIDsArePersistent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
TeamPlayerId
Team Player Id. See https://developer.apple.com/videos/play/wwdc2019/615/
Declaration
public string TeamPlayerId { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
LoadPhoto(GKPhotoSize, Action<ISN_GKImageLoadResult>)
Loads a photo of this player from Game Center.
Declaration
public void LoadPhoto(GKPhotoSize size, Action<ISN_GKImageLoadResult> callback)
Parameters
Type | Name | Description |
---|---|---|
GKPhotoSize | size | A constant that determines the size of the photo to load. |
Action<ISN_GKImageLoadResult> | callback | A block to be called when the player data is retrieved from Game Center. |