SProfile

Index

Functions Index

Function Name

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)

Properties Index

Property Name

SUserProfile ActivePlayerProfile get

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'.

ParameterTypeDescription

Space.Profile.Authorize()
--or
Space.Profile.Authorize(AnOnAuthorizeFunction)
--or
Space.Profile.Authorize(AnOnAuthorizeFunction, AnOnRejectedFuncton)

LoadProfile

void LoadProfile (Closure onFinished)

Load the profile of player

ParameterTypeDescription

onFinished

Callback Function

onFinished(SUserProfile) is called once profile is loaded

function onFinished(SUserProfile)
--
end
Space.Profile.LoadProfile(onFinished)

Properties

ActivePlayerProfile

SUserProfile ActivePlayerProfile get

Property Description

Space.Profile.ActivePlayerProfile

Last updated

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.