supported original SMSSDK version:
中文集成文档
Open Github and download SMSSDK-for-Unity3D section. Copy ”Unity3dForSMSSDK/Assets/Plugins”catalogue to Assets catalogue, or double click “SMSSDKPackageForUnity.unitypackage” to import relative documents. Please notice that this operation could cover your original existed documents!
Need to add SMSSDK to GameObject(Like Main Camera). Click”Add Component” from the right-hand side bar, and choose SMSSDK to be added.
Config your appkey add appSecret. You could get that from our website when you register an account.
1.Please import Name Space first :
- using cn.smssdk.unity3d;
- private SMSSDK smssdk;
2.Implements SMSSDKHandler and set it to SDK
add a class to implement SMSSDKHandler, then set it to SDK to handle callback
class Demo:SMSSDKHandler .... smssdk.setHandler(demo);
3.now you can use SDK to do something
smssdk.getCode(CodeType.TextCode,"86","18688888888"); smssdk.getFriends();
Some APIs will send data to your SMSSDKHandler.This callback data is a json string.You can use any JSON library to handle it.The action is what API you call.
onComplete(int action, object resp) onError(int action, object resp)
This two APIs bellow is GUI APIs.
showRegisterPage(CodeType getCodeMethodType) showContactsPage()
If you don't want to use this GUI, you can remove ShortMessageSDKGUI fold under Assets/Plugins/Android. This ShortMessageSDKGUI library is open source at SMSSDK for Android,you can modify whatever you want to do.
If you don't want to use this GUI,you can note the methods in SMSSDK.cs,or do nothing in the method'body in the bridge file of your xcode project.
Until now,the Unity party is everything ok,the next you need to import the SMSSDK to the project.If your want to see the method of importting the SDK,please click here:The Document of importting SMSSDK for iOS
Finally, if you have any other questions, please do not be hesitate to contact us:
- Customer Service QQ : 4006852216
- or Skype:amber
More information About SMSSDK, please visit our website [Mob.com](http://www.mob.com
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。