| Previous | Next | |
STF.getUserGUID() : StringA string.; ; This value is returned as a parameter to the registered callback. See the example below or STF.registerCallBack() for more information on return variable handling.
Method; Retrieves the unique user id. This unique user id is a globally unique identifier (GUID), useful for user identification when building online applications.
The following sample retrieves current user's unique id.
var userGUID:String;
//define the callback
function onGetUserGUIDReturn(returnValue:Boolean) {
userGUID = returnValue;
}
//register callback
STF.registerCallBack("getUserGUID", onGetUserNameReturn, this);
STF.getUserGUID();| Questions or Feedback? | Previous | Next |