1.Core
1.1 Init SDK(must)
Android
CoreNative.init();iOS
[IOSLoader startLoaderLibrary];1.2 Set game exit callback(Only Android)
Android(must)
PayNative.setGameExitCallback(Runnable runnable);Example:
PayNative.setGameExitCallback(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
CoreNative.gameExit();//you must execute this code before exit
currentActivity.finish();
System.exit(0);
}
});Parameters:
runnable:the runnable of exit trigger.
1.3 Open exit game(must)
Android
Recommend ways as follows:
Unity
Example:
Creator
1.4 Get parameters of Application
Android
iOS
Unity
Creator
1.5 Get custom switch value
Android
Example:
iOS
Example:
Unity
Example:
Parameters:
customKey:custom key name
Return: 0-not audit, 1-auditing
Creator
Example:
Parameters:
customKey:custom key name
Return: 0-not audit, 1-auditing
1.6 Check Signature
Unity
最后更新于
这有帮助吗?