All pages
Powered by GitBook
1 of 1

Loading...

SProfile

Index

Functions Index

Function Name

Properties Index

Property Name

Functions

Authorize

void Authorize (Closure onAuthorized=null, Closure onRejected=null) void Authorize (Action onAuthorized=null, Action onRejected=null)

Requests access to profile functions, must be called prior to attempting to access profile. As soon as the player has accepted the request, the Authorized attribute will be 'true'.

Parameter
Type
Description

LoadProfile

void LoadProfile (Closure onFinished)

Load the profile of player

Parameter
Type
Description

Properties

ActivePlayerProfile

ActivePlayerProfile get

Property Description

void Authorize (Closure onAuthorized=null, Closure onRejected=null) void Authorize (Action onAuthorized=null, Action onRejected=null)

void LoadProfile (Action< SUserProfile > onFinished) void LoadProfile (Closure onFinished)

SUserProfile ActivePlayerProfile get

onFinished

Callback Function

onFinished(SUserProfile) is called once profile is loaded

SUserProfile
Space.Profile.Authorize()
--or
Space.Profile.Authorize(AnOnAuthorizeFunction)
--or
Space.Profile.Authorize(AnOnAuthorizeFunction, AnOnRejectedFuncton)
function onFinished(SUserProfile)
--
end
Space.Profile.LoadProfile(onFinished)
Space.Profile.ActivePlayerProfile