1 Star 0 Fork 0

ShylockBlack / SMSSDK-for-Unity3D

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

SMSSDK-for-Unity3D

This is UnityPackage base on SMSSDK(iOS,Android).It supports an unity plugin to use SMSSDK. 中文官网.

supported original SMSSDK version:

  • Android - V3.3.3
  • iOS - V3.2.3

中文集成文档


The notes for fast integration of Unity3D##

Integration of general part

Step 1 : Download Unity3D tools of SMSSDK

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!

Step 2 : Add SMSSDK script and set the platforms’ information

Need to add SMSSDK to GameObject(Like Main Camera). Click”Add Component” from the right-hand side bar, and choose SMSSDK to be added.

Snip20170527_10.png

Config your appkey add appSecret. You could get that from our website when you register an account.

Step 3 : Use SDK

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();

About Callback data

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)

About GUI

This two APIs bellow is GUI APIs.

showRegisterPage(CodeType getCodeMethodType) showContactsPage()

For Android setting

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.

For iOS setting

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

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/runoobpei/SMSSDK-for-Unity3D.git
git@gitee.com:runoobpei/SMSSDK-for-Unity3D.git
runoobpei
SMSSDK-for-Unity3D
SMSSDK-for-Unity3D
master

搜索帮助