User system is used to manage SG users, including signup, login and kids (family members ) management, etc. Most of the functions use WebView control as part of the process flow. To handle response of these functions, you need to register a callback listener to SGSDK.
void signup()Description
void login()Description
void forgetPassword()Description
void changePassword()Description
void parentalLock()Description
void myKid()Description
void selectKid()Description
verifySession(String gameKey, String sessionId, String openId, Stirng sign)Description
gameKey | Your developer identification. |
sessionId |
Current session ID. You can obtain it through GetSessionID() after user login. |
openId |
SG member ID. You can obtain it through GetOpenID() after user login. |
sign |
Signature generated from above three parameters. Please refer to signature algorithm. |
void loginByToken(String token)Description
String getOpenID()Description
String getSessionID()Description
void getToken()Description
int getKidIndex()Description
login
, signup
, selectKid
, myKid
,
and loginByToken
.
String getKidFace()Description
boolean isLogin()Description
String getChannelID()Description
void showWidget(EWidgetLocation location)Description
Enum : EWidgetLocation
Case | Description |
---|---|
TopLeft | Top left of the screen |
Top | Top of the screen |
TopRight | Top right of the screen |
Left | Left side of the screen |
Right | Right side of the screen |
BottomLeft | Bottom left of the screen |
Bottom | Bottom of the screen |
BottomRight | Bottom right of the screen |
void hideWidget()Description
boolean isWidgetVisible()Description
void logout()Description