ProtocolSocial
Class
Extends PluginProtocol
Module: anysdk
social protocol
Index
Methods
signIn
sign insignOut
sign outsubmitScore
submit scoreshowLeaderboard
show the id of Leaderboard pageshowAchievements
show the page of achievementsshare
unlock achievementsetListener
set listenergetListener
get listenerpauseRecording
get friends infointeract
interactsubscribe
subscribeisFunctionSupported
Check whether the function is supportedgetPluginName
get plugin namegetPluginVersion
get plugin versiongetSDKVersion
get SDK versioncallFuncWithParam
void methods for reflections with parametercallStringFuncWithParam
String methods for reflections with parametercallIntFuncWithParam
int methods for reflections with parametercallBoolFuncWithParam
boolean methods for reflections with parametercallFloatFuncWithParam
float methods for reflections with parameter
Details
Methods
signIn
sign in
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1203 |
signOut
sign out
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1213 |
submitScore
submit score
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1223 |
Parameters
showLeaderboard
show the id of Leaderboard page
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1235 |
Parameters
leaderboardID
String
showAchievements
show the page of achievements
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1246 |
share
unlock achievement
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1256 |
Parameters
info
Object Type: map
setListener
set listener
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1267 |
Parameters
getListener
get listener
meta | description |
---|---|
Returns | Function |
Defined in | extensions/anysdk/jsb_anysdk.js:1279 |
pauseRecording
get friends info Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1292 |
interact
interact Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1303 |
subscribe
subscribe Before to invoke, you need to verdict whether this properties existed
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:1314 |
isFunctionSupported
Check whether the function is supported
meta | description |
---|---|
Returns | boolean |
Defined in | extensions/anysdk/jsb_anysdk.js:328 |
Parameters
functionName
String
getPluginName
get plugin name
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:342 |
getPluginVersion
get plugin version
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:354 |
getSDKVersion
get SDK version
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:366 |
callFuncWithParam
void methods for reflections with parameter
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:378 |
Parameters
callStringFuncWithParam
String methods for reflections with parameter
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:391 |
Parameters
callIntFuncWithParam
int methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | extensions/anysdk/jsb_anysdk.js:406 |
Parameters
callBoolFuncWithParam
boolean methods for reflections with parameter
meta | description |
---|---|
Returns | boolean |
Defined in | extensions/anysdk/jsb_anysdk.js:421 |
Parameters
callFloatFuncWithParam
float methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | extensions/anysdk/jsb_anysdk.js:436 |