Cross Platform Native Plugins
A true cross platform tool for Unity which provides unique and unified way to access native functionality on mobile platforms.
Public Member Functions | Properties | List of all members
User Class Reference

Represents an object that holds information about a user playing your game. More...

Public Member Functions

delegate void LoadUsersCompletion (User[] _users, string _error)
 Delegate that will called when user info are retrieved from game server. More...
 
virtual void GetImageAsync (DownloadTexture.Completion _onCompletion)
 Asynchronously downloads the profile picture of this user. More...
 

Properties

abstract string Identifier [get, protected set]
 A string assigned by game service to uniquely identify a user. (read-only) More...
 
abstract string Name [get, protected set]
 A string to display for the user. (read-only) More...
 
abstract string Alias [get, protected set]
 A string chosen by the user to identify themselves to other users. (read-only) More...
 

Detailed Description

Represents an object that holds information about a user playing your game.

Member Function Documentation

delegate void LoadUsersCompletion ( User[]  _users,
string  _error 
)

Delegate that will called when user info are retrieved from game server.

Parameters
_usersAn array of User objects, that holds information of requested users.
_errorIf the operation was successful, this value is nil; otherwise, this parameter holds the description of the problem that occurred.
virtual void GetImageAsync ( DownloadTexture.Completion  _onCompletion)
virtual

Asynchronously downloads the profile picture of this user.

Parameters
_onCompletionCallback that will be called after operation is completed.

Property Documentation

abstract string Identifier
getprotected set

A string assigned by game service to uniquely identify a user. (read-only)

abstract string Name
getprotected set

A string to display for the user. (read-only)

If the user is a friend of the local user, then the value returned is the actual name of the user. And incase if he is not a friend, then user’s alias will be returned.

abstract string Alias
getprotected set

A string chosen by the user to identify themselves to other users. (read-only)

This property is used when a user is not a friend of the local user. For displaying name on user interface, use the Name property.