更新日期:2023年 01月 05日QuickSDK-Unity3D
<h3 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:18px;font-family:';">1.unity part</span></strong>
</h3>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong style="font-size:12px;"><span style="font-size:16px;font-family:'color:#FFC000;">1.1. Import SDK resource</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> Downloading “QuickSDK For Unity 3D”version SDK pakage from download center on offical web. ImportQuickSDKForUnity.unitypakage file in Unity project ( if it fail to Import, please confirm whether the file is under non-Chinese path), refer to following pic:</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> <img alt="1.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512027955463333.png" title="1512027459481839.png" /></span>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">1.2. Call QuickSDK interface</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">call QuickSDK.cs class API, implement callback methods<br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Note: Adding quicksdk named space(using quicksdk;) at first, obtain QuickSDK class example by QuickSDK.genInstance() method.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>1.2.</strong></span><strong><span style="font-family:';">1. Set monitor/set listener(Necessarily)</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>API</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void setListener(QuickSDKListener quickSDKListener )</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Example</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">Calling QuickSDK.getInstance().setListener function, and transferring the parameters to instantiated QuickSDKListener class object. It is convenient to monitor callback that to set setListener function as soon as possible.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> Refer to following code to realized callback</span><span style="font-family:';">:</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"></span>
</p>
<pre class="brush:java;toolbar:false">public class EventHandle : QuickSDKListener {
void Start () {
QuickSDK.getInstance().setListener (this);
}
public override void onInitSuccess(){
// initialize success callback
}
public override void onInitFailed(ErrorMsg errMsg){
// initialize fail callback
}
public override void onLoginSuccess (UserInfo userInfo){
// login success callback
}
public override void onLoginFailed (ErrorMsg errMsg){
// login fail callback
// if there’s no login button in game,you shall call login API again here.
}
public override void onSwitchAccountSuccess (UserInfo userInfo){
// switch account success callback
//Some markets have switch account function in floating window, the callback means switch succeed.Game client need to wipe the current game role information out.Once return to choosing service interface after switch account successed Please do not call login API again.
}
public override void onLogoutSuccess (){
//log out success callback
// Game client shall wipe current role information,return to login interface,and automatically call login API once.
}
public override void onPaySuccess (PayResult payResult){
// payment succeed callback
//since some markets payment notification is not that accurate, the client notification is just for reference, game client pay the payable goods should according to server notification not client notification.
}
public override void onPayCancel (PayResult payResult){
// payment cancel callback
}
public override void onPayFailed (PayResult payResult){
//payment fail callback
}
public override void onExitSuccess (){
// SDK exit succeed callback
// call QuickSDK.getInstance().exitGame()function to exit game, quit course. Please do not use Application.Quit()function ,in order to avoid conflict with market.
}
}</pre>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong> </strong></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong>1.2.2. <span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">init</span> (necessarily)</strong><br />
<strong>API:</strong><span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">void init();</span><br />
<strong>Function:</strong> call the init of market SDK<br />
<strong>Example</strong>:<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">QuickSDK.getInstance().init();</span>
</p>
<p>
<span style="font-family:""><strong><br />
</strong></span>
</p>
<p>
<span style="font-family:""><strong>1.2.3</strong></span><strong><span style="font-family:';">. Login (necessarily)</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>API</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void login();</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Function</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> call the login of market SDK</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Example</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">QuickSDK.getInstance().login();</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"> </span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>1.2.4</strong></span><strong><span style="font-family:';">. Uploading role information(necessarily)</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><span style="color:red;">Note: It is necessary to call upload role information API when creating role, entering game, or updating role.</span></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:'color:black;">1.2.4</span></strong><strong><span style="font-family:'color:black;">.1. Uploading while creating role</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>API</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void createRole(GameRoleInfo gameRoleInfo);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Function</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> Uploading role information to market SDK while creating role</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Example</strong></span><strong><span style="font-family:';">:</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';"></span></strong>
</p>
<p style="text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"></span>
</p>
<pre class="brush:java;toolbar:false">GameRoleInfo gameRoleInfo = new GameRoleInfo();
gameRoleInfo.gameRoleBalance = "0";
gameRoleInfo.gameRoleID = "000001";
gameRoleInfo.gameRoleLevel = "1";
gameRoleInfo.gameRoleName = "real rich";
gameRoleInfo.partyName = "Tong Ji party";
gameRoleInfo.serverID = "1";
gameRoleInfo.serverName = "Mars server";
gameRoleInfo.vipLevel = "1";
gameRoleInfo.roleCreateTime = "roleCreateTime";//UC,dangle.com and 1881 must uploading, the value is 10digit timestamp渠道必传,值为10位数时间戳
gameRoleInfo.gameRoleGender = "male ";//360.com market parameter
gameRoleInfo.gameRolePower ="38";//360.com market parameter,set role power level,it must be an integer string
gameRoleInfo.partyId ="1100";// 360.com market parameter,set party ID,it must be an integer string
gameRoleInfo.professionId = "11";//360.com market parameter,set role profession id,it must be an integer string
gameRoleInfo.profession = "Master";//360.com market parameter,set role profession name
gameRoleInfo.partyRoleId = "1";//360.com market parameter, set party role id
gameRoleInfo.partyRoleName = "Party leader"; //360.com parameter, set role name in party
gameRoleInfo.friendlist = "无";//360.com parameter,set friend relationship list, format for reference:http://open.quicksdk.net/help/detail/aid/190
QuickSDK.getInstance ().createRole(gameRoleInfo);//Creating role</pre>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';"></span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:'color:black;"><br />
</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:'color:black;">1.2.4</span></strong><strong><span style="font-family:'color:black;">.2. Uploading while accessing game</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">API</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void enterGame(GameRoleInfo gameRoleInfo);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Function</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> After login, uploading role information to market SDK while entering game.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Example</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">QuickSDK.getInstance().enterGame(gameRoleInfo);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';"><br />
</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">1.2.4</span></strong><strong><span style="font-family:';">.3. Uploading when role updating</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>API</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void updateRole(GameRoleInfo gameRoleInfo);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Function</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> Uploading role information to market SDK while role updating.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Example</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">QuickSDK.getInstance().updateRole(gameRoleInfo);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> </span><strong><span style="font-size:12px;font-family:';">GameRoleInfo</span></strong>
</p>
<table cellpadding="0" cellspacing="0" width="483">
<tbody>
<tr class="firstRow">
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<strong><span style="font-size:12px;font-family:';">string</span></strong>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<strong><span style="font-size:12px;font-family:';">type</span></strong>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<strong><span style="font-size:12px;font-family:';">instruction</span></strong>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">serverID</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Server ID</span><strong><span style="font-size:12px;font-family:';">(value is string)</span></strong>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">serverName</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Server name</span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">gameRoleName</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role name</span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">gameRoleID</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role ID</span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">gameRoleBalance</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role account balance</span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">vipLevel</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<strong><span style="font-size:12px;font-family:';">VIP level(value is string)</span></strong>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">gameRoleLevel</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role level<strong>(value is string)</strong></span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">partyName</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Party/association</span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">roleCreateTime</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role create time</span><strong><span style="font-size:12px;font-family:';">(10 digits timestamp)</span></strong>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">gameRoleGender</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role gender<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
<tr style="height:30px;">
<td style="border:1px solid windowtext;padding:0px 7px;" height="30" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">gameRolePower</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" height="30" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" height="30" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role power<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">partyId</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Party id<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">professionId</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role profession id<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">profession</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Role profession name<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">partyRoleId</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Party role id<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">partyRoleName</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Party role name<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
<tr>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="74">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">friendlist</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="45">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">String</span>
</p>
</td>
<td style="border:1px solid windowtext;padding:0px 7px;" valign="top" width="100">
<p style="margin-top:auto;margin-bottom:auto;text-align:center;line-height:3em;">
<span style="font-size:12px;font-family:';">Friends list<strong>(only for 360.com)</strong></span>
</p>
</td>
</tr>
</tbody>
</table>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:'color:red;background:white;"><strong>Access instruction</strong></span><strong><span style="font-family:'color:red;background:white;">:</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;background:white none repeat scroll 0% 0%;line-height:3em;">
<span style="font-family:'color:red;">1) Uploading role information while creating role, entering game and updating role.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;background:white none repeat scroll 0% 0%;line-height:3em;">
<span style="font-family:'color:red;">2) All fields in GameRoleInfo can not transfer null, if the game has no field that it will send a default or empty string;</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:'color:red;">3) More specific instruction of updating role information on 360.com, please refer to</span><span style="font-family:'color:red;">:</span><a href="http://open.quicksdk.net/help/detail/aid/190"><span style="font-family:'color:blue;">http://open.quicksdk.net/help/detail/aid/190</span></a>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"> </span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:'color:black;">1.2.5</span></strong><strong><span style="font-family:'color:black;">. Fixed payment(necessarily)</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>API</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void pay(OrderInfo orderInfo, GameRoleInfo gameRoleInfo);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Function</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> call market SDK payment API</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"><strong><span style="font-size:12px;">Example:</span></strong><span style="font-size:12px;"> </span></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"></span>
</p>
<p style="text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"></span>
</p>
<pre class="brush:java;toolbar:false">OrderInfo orderInfo = new OrderInfo();
GameRoleInfo gameRoleInfo = new GameRoleInfo();
orderInfo.goodsID = "1";
orderInfo.goodsName = "gouyu";
orderInfo.amount = 1;
orderInfo.count = 10;
orderInfo.cpOrderID = "cporderidzzw";
orderInfo.extrasParams = "extparma";
orderInfo.price = 0.1f; //(Necessarily for IOS, if only for android there’s no need to transfer)
oorderInfo.goodsDesc = "10gouyu"; //(Necessarily for IOS, if it only for android there’s no need to transfer)
gameRoleInfo.gameRoleBalance = "0";
gameRoleInfo.gameRoleID = "000001";
gameRoleInfo.gameRoleLevel = "1";
gameRoleInfo.gameRoleName = "Real rich";
gameRoleInfo.partyName = "Tong Ji party";
gameRoleInfo.serverID = "1";
gameRoleInfo.serverName = "Mars server";
gameRoleInfo.vipLevel = "1";
gameRoleInfo.roleCreateTime = "roleCreateTime";
QuickSDK.getInstance ().pay (orderInfo, gameRoleInfo);</pre>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> </span><strong><span style="font-size:12px;font-family:';">OrderInfo</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:"color:red;">
<table style="width:100%;" cellpadding="2" cellspacing="0" border="1" bordercolor="#000000">
<tbody>
<tr>
<td>
<strong>string</strong><strong></strong><br />
</td>
<td>
<strong>type</strong><strong></strong><br />
</td>
<td>
<strong>instruction</strong><strong></strong><br />
</td>
</tr>
<tr>
<td>
goodsID<br />
</td>
<td>
String<br />
</td>
<td>
Goods id, to identify the purchased goods<br />
</td>
</tr>
<tr>
<td>
goodsName<br />
</td>
<td>
String<br />
</td>
<td>
Goods name<br />
</td>
</tr>
<tr>
<td>
amount<br />
</td>
<td>
double<br />
</td>
<td>
Payment amount<br />
</td>
</tr>
<tr>
<td>
count<br />
</td>
<td>
int<br />
</td>
<td>
Purchase quantity<br />
</td>
</tr>
<tr>
<td>
cpOrderID<br />
</td>
<td>
String<br />
</td>
<td>
Product order(game client order number)<br />
</td>
</tr>
<tr>
<td>
extrasParams<br />
</td>
<td>
String<br />
</td>
<td>
Extra parameter<br />
</td>
</tr>
<tr>
<td>
price<br />
</td>
<td>
float<br />
</td>
<td>
Unit price (only for ios)<br />
</td>
</tr>
<tr>
<td>
quantifier<br />
</td>
<td>
String<br />
</td>
<td>
Quantifier,“yuanbao”means“unit”,“Month card”means“piece”(only for ios)<br />
</td>
</tr>
<tr>
<td>
goodsDesc<br />
</td>
<td>
String<br />
</td>
<td>
Goods describe(only for ios)<br />
</td>
</tr>
<tr>
<td>
callbackUrl<br />
</td>
<td>
String<br />
</td>
<td>
Payment callback notification address<br />
</td>
</tr>
</tbody>
</table>
<br />
<strong>Access requirement</strong></span><strong><span style="font-family:'color:red;">:</span></strong><span style="font-family:"color:red;"> in order to uniformly show all kinds of market goods name, transfer the order value in following pattern:</span><span style="font-size:16px;font-family:宋体;"> </span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:'color:red;"> Example 1</span><span style="font-family:'color:red;">: Example 2:</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;text-indent:28px;line-height:3em;">
<span style="font-family:'color:red;">amount:6.0 amount:10.0</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;text-indent:28px;line-height:3em;">
<span style="font-family:'color:red;">count:60 count:1</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;text-indent:28px;line-height:3em;">
<span style="font-family:'color:red;">goodsName: yuanbao goodsName: month card</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;text-indent:28px;line-height:3em;">
<span style="font-family:'color:red;">goodsName: transfer goods name in “yuanbao”,”diamond”, ”month card” pattern without quantity.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;text-indent:28px;line-height:3em;">
<span style="font-family:'color:red;"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">1.2.6</span></strong><strong><span style="font-family:';">. log out account (necessarily)</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>API</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void logout();</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Function</strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> call market SDK log out</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Example </strong></span><strong><span style="font-family:';">:</span></strong><span style="font-family:';">QuickSDK.getInstance().logout();</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:'color:black;">1.2.7 </span></strong><strong><span style="font-family:'color:black;"> Exit(necessarily)</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong style="text-indent:28px;"><span style="font-family:';">API</span></strong><strong style="text-indent:28px;"><span style="font-family:';">:</span></strong><span style="text-indent:28px;font-family:"">void exit();</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong style="text-indent:28px;"><span style="font-family:';">Function</span></strong><strong style="text-indent:28px;"><span style="font-family:';">:</span></strong><span style="text-indent:28px;font-family:"color:red;"> Exiting game. To confirm whether the market there is exit Dialog by checking</span><span style="text-indent:28px;font-family:"color:#434343;background:#FCFCFE;"> isChannelHasExitDialog, if there is exit dialog, call QuickSDK exit API; If there’s no exit dialog ,call game client exit dialog, click “Sure” button,then call QuickSDK exit API.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong style="text-indent:28px;"><span style="font-family:';">Example</span></strong><strong style="text-indent:28px;"><span style="font-family:';">:</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;text-indent:28px;line-height:3em;">
<strong><span style="font-family:';"></span></strong>
</p>
<p style="text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"></span>
</p>
<pre class="brush:java;toolbar:false">if(QuickSDK.getInstance().isChannelHasExitDialog ()){
QuickSDK.getInstance().exit();
} else {
//mExitDialogCanvas.SetActive(true);
// call game client exit dialog ,click “sure”button,then call QuickSDK.getInstance().exit();
}</pre>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;text-indent:28px;line-height:3em;">
<br />
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">1.3. Expansion API</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';"><br />
</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">1.3.1. </span></strong><strong><span style="font-family:';"> Obtain market type</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">API</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">int channelType();</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">Function</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> Obtain market serial number, distinguish market by it.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">1.3.2. Obtain user ID</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">API</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">string userId();</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">Funciton</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">Obtain user ID</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">1.3.3. Obtain configuration parameter value</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">API</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">string getConfigValue (string key);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">Function</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">Obtain game client user-defined parameter, which can configure in QuickSDK background</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">1.3.4. </span></strong><strong><span style="font-family:';">Support appoint method ?</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">API</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">bool isFunctionSupported(FuncType type);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">Function</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">Testing if there is corresponding function</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">Instruction</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';"> There are some functions such as open/close floating toolbar, enter in user center, enter forum in some SDK. If this method support this function , call it. Defination of appoint method refer to FuncType of QuickSDKImp.cs</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">1.3.5. call appoint method</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">API</span></strong><strong><span style="font-family:';">:</span></strong><span style="font-family:';">void callFunction (FuncType type);</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Callback information interface:</strong> void onSuccess(string infos)</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">Function:</span></strong><span style="font-family:';"> There are some functions such as open/close floating toolbar, enter in user center, enter forum in some SDK. This method can call these functions, details refer to FuncType of QuickSDKImp.cs</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Description:</strong> Infos is the returned json string <br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>Case:</strong> Real name authentication (called after successful login)<br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> OnSuccess will return the encapsulated json entity; Uid (representing user id), age (representing age, which defaults to - 1 if the market does not return a real name), realName (whether the market has a real name: true represents a real name, false represents an unreal name; if the market does not return a real name, which defaults to false), resumeGame (whether the game can continue after the market real name authentication fails: true represents yes, false represents no; if the market does not return a real name, it defaults to true), Other (reserved field, if the market does not return a string that defaults to ""); FunctionType (indicates the function to be called. The value 105 of FuncType.QUICK_SDK_FUNC_TYPE_REAL_NAME_REGISTER indicates real name authentication):<br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> </span>
</p>
<pre class="brush:js;toolbar:false">public void onSuccess(string infos)
{
onSucceed(infos);
}
QuickSDK.getInstance().callFunction(FuncType.QUICK_SDK_FUNC_TYPE_REAL_NAME_REGISTER);
For example, the result form of the callback infos of the test market is:
{"uid":"1178471402501092","age":20,"realName":true,"resumeGame":true,"other":"","FunctionType":105}</pre>
<br />
<p>
<br />
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>1.3.6 Call QuickSDK Customer Service Plug-in</strong><br />
<strong>API</strong><strong>: </strong>void enterYunKeFuCenter (GameRoleInfo gameRoleInfo);<br />
<strong>Function:</strong> First, you need to add QuickSDKCustomService plug-in to the channel configuration interface, then the parent package calls this interface, and then you can perform the channel package operation. After that, the interface can be used to lift the customer service normally</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong style="font-family:""><br />
</strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong style="font-family:"">1.3.7 Call market SDK sharing function (Android only)</strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">ShareInfo Class Field Description:</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">
<table style="width:100%;" cellpadding="2" cellspacing="0" border="1" bordercolor="#000000">
<tbody>
<tr>
<td>
<strong style="white-space:normal;text-align:center;"><span style="font-family:"">string</span></strong><br />
</td>
<td>
<strong style="white-space:normal;text-align:center;"><span style="line-height:18px;font-family:"">type</span></strong><br />
</td>
<td>
<strong style="white-space:normal;text-align:center;"><span style="font-family:"">instruction</span></strong><br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;font-family:微软雅黑, "margin:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;line-height:2.5;">title</span><span font-size:14px;white-space:normal;background-color:#ffffff;line-height:2.5;"="" style="white-space: normal; font-family: 微软雅黑, "Microsoft YaHei", Arial, "Apple LiGothic Medium", SimHei, "ST Heiti"; margin: 0px; padding: 0px; color: rgb(50, 50, 50); font-size: 14px; background-color: rgb(255, 255, 255);">string</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Share Title<br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">content</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Share content<br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">imgPath</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Local address for sharing pictures<br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">imgUrl</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Share picture network address<br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">url</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Share Link<br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">type</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Sharing type<br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">shareTo</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Where to share<br />
</td>
</tr>
<tr>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">extenal</span><br />
</td>
<td>
<span style="white-space:normal;color:#323232;font-family:微软雅黑, "font-size:14px;background-color:#FFFFFF;">string</span><br />
</td>
<td>
Additional remarks<br />
</td>
</tr>
</tbody>
</table>
<br />
<strong>API</strong><strong>:</strong> void callSDKShare (ShareInfo shareInfo);<br />
<strong>Function: </strong>Transfer the shared objects specified in QuickSDK (the parameters of the objects should be transferred in after negotiation with the channel). After the channel package is printed, the sharing function of the corresponding channel can be suspended;</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><strong>1.3.8 Adding the Acquire DeviceId Interface</strong><br />
<strong>API</strong><strong>: </strong>getDeviceId()<br />
<strong>Function: </strong>Get the DeviceId of the device<br />
</span>
</p>
<div style="white-space:nowrap;">
<br />
</div>
<br />
<h3>
<strong><span style="font-size:18px;font-family:';">2. android</span></strong>
</h3>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">2.1. Import Android project</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><span style="color:#666666;font-family:Tahoma,Arial,宋体,"font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:24px;text-align:justify;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgba(255, 255, 255, 0.8);display:inline ! important;float:none;font-size:16px;"><span style="color:#000000;">Open quicksdk. XML, modify quicksdk. The parameters for their game in the XML file</span><span style="color:#000000;"></span><span style="color:#000000;">(</span><span style="color:#E53333;">Please double-click directly in Unity to open, to prevent file format changes from reporting product errors</span><span style="color:#E53333;"></span>)</span></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:""> </span><img alt="2.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028115922368.png" title="1512028115922368.png" style="font-family:"" />
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"> </span>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">2.2 Android access example</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:"color:#000000;">Open the AndroidManifest.xml file, modify the game name, horizontal and vertical screen settings</span><span style="font-family:""> </span><img alt="3.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028139593289.png" title="1512028139593289.png" style="font-family:"" /> <img alt="4.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028146674858.png" title="1512028146674858.png" />
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> </span>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">2.3. Set game icon picture</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Change the ic_ launcher.png image is replaced with the game's own icon image</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><img alt="5.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028165908623.png" title="1512028165908623.png" /></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> </span>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">2.4. Packing example</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Copying the led out myGame.jar pakage and AndroidManfest.xml file to Unity project.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:""> </span><img alt="6.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028175648676.png" title="1512028175648676.png" style="font-family:"" />
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<img alt="7.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028184397063.png" title="1512028184397063.png" />
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<img alt="8.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028198150351.png" title="1512028198150351.png" /><span style="font-family:';"></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> </span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Creating APK refer to following method, the creating APK is game orgin package.</span>
</p>
<p>
Complement.
</p>
<p>
<strong><span style="font-size:18px;font-family:';"><br />
</span></strong>
</p>
<h3>
<strong><span style="font-size:18px;font-family:';">3. iOS</span></strong>
</h3>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Export xcode project and open it by unity.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;"><br />
</span></strong>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">3.1. The exporting switch screen setting</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">3.1.1. Landscape game</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Export u3d setting as followed, u3d setting will control the switch of game.</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> <img alt="9.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028214610344.png" title="1512028214610344.png" /></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-family:';">3.1.2. Portrait game</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> Choosing portrait in u3d to export xcode</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;"><br />
</span></strong>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">3.2. Adding quicksdk database</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Adding QuickSDKForIOS in project</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> <img alt="10.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028235440145.png" title="1512028235440145.png" /></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><span style="color:#E53333;">Including UnityFramework dynamic library Special instructions:</span><br />
TargetMembership of files such as. a/. framework/. h/. m needs to be associated with UnityFramework;<br />
TargetMembership and other resource files such as. bundle/. cfg/. png need to be associated with Unity iPhone;<br />
TargetMembership of dynamic libraries such as. framework must be associated with UnityFramework and Unity-iPhone at the same time.<br />
At present, the QuickSDK basic library is a static library, and TargetMembership cannot be associated with UnityFramework and Unity-iPhone at the same time</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><img src="https://staticsite.quickapi.net/data/newFiles/20230105/20230105133902LEeZ503.png" alt="" /></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;"><br />
</span></strong>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;"><br />
</span></strong>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">3.3. Adding project configuration</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> Adding linking parameters of lib, opening project configuration, Finding Linking Other Linker Flags in Linking of project configuration, adding parameter: -ObjC</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> <img alt="11.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028248457313.png" title="1512028248457313.png" /></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Build Settings->Search Paths-> wipe ”” out of all paths in Library Search Paths</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:""> </span><img alt="12.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028256727344.png" title="1512028256727344.png" style="font-family:"" />
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">PROJECT ->Info ->Configurations Only Release and Debug are reserved<br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><img src="https://staticsite.quickapi.net/data/newFiles/20230105/20230105134041b7bL575.png" alt="" /><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">The project info.plist file is configured to allow access to the http network</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"><img alt="13.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028263452006.png" title="1512028263452006.png" style="white-space:normal;font-family:"" /><br />
</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;"><br />
</span></strong>
</p>
<h4 style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<strong><span style="font-size:16px;font-family:'color:#FFC000;">3.4. Adding method call in UnityAppController.mm</span></strong>
</h4>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Importing heading file :</span> <span style="font-family:';">#import <SMPCQuickSDK/SMPCQuickSDK.h> and #import "QuickSDK_ios.h"</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> <img alt="14.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028271217488.png" title="1512028271217488.png" /></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-size:16px;font-family:宋体;"> </span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';">Adding initialized method call in UnityAppController.mm</span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<span style="font-family:';"> <img alt="15.png" src="http://data.quicksdk.net/data/newFiles/image/20171130/1512028279764099.png" title="1512028279764099.png" /></span>
</p>
<p style="margin-top:auto;margin-bottom:auto;text-align:left;line-height:3em;">
<br />
</p>
<p style="line-height:3em;">
<span style="color:#E53333;">Note 1: The initialization interface needs to be called after setting the application window</span><br />
<span style="color:#E53333;">Note 2: ProductCode and ProductKey should be replaced by the game's own master package parameters!!!</span>
</p>
<p style="line-height:3em;">
<span style="color:#E53333;">Is to modify the parameters in the configuration file quickChannel.cfg.</span>
</p>
<p>
<br />
</p>
<h4>
<span style="font-size:16px;"><strong>3.5 Unity compatible settings</strong></span>
</h4>
<p>
<span style="font-size:16px;"><br />
</span>
</p>
<p>
<span style="font-size:16px;"><span style="font-size:12px;">Below iOS Unity5. X, if a crash occurs during callback, please send the QuickSDK_ In ios. mm - (void) sendU3dMessage: (NSString *) messageName: (NSDictionary *) dict Modify:</span><br />
<span style="font-size:12px;">appid:29</span><br />
<span style="font-size:12px;"></span><br />
</span>
</p>
<p>
<span style="font-size:16px;"><span style="font-size:12px;">Open:</span></span>
</p>
<p>
<span style="font-size:16px;"><span style="font-size:12px;"></span></span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// char *gameObjectNameCStr = (char *)malloc(100);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// strcpy(gameObjectNameCStr, [_gameObjectName UTF8String]);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// char *messageNameCStr = (char *)malloc(100);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// strcpy(messageNameCStr, [messageName UTF8String]);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// char *jsonStringCStr = (char *)malloc(1000);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// strcpy(jsonStringCStr, [jsonString UTF8String]);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// UnitySendMessage(gameObjectNameCStr, messageNameCStr, jsonStringCStr);</span>
</p>
<p>
<span style="font-size:16px;"><span style="font-size:12px;"><br />
</span></span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">Close:</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">UnitySendMessage([_gameObjectName UTF8String], [messageName UTF8String], [jsonString UTF8String]);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;"><br />
</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;"></span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">Open:</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// char *gameObjectNameCStr = (char *)malloc(100);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// strcpy(gameObjectNameCStr, [_gameObjectName UTF8String]);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// char *messageNameCStr = (char *)malloc(100);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// strcpy(messageNameCStr, [messageName UTF8String]);</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">// UnitySendMessage(gameObjectNameCStr, messageNameCStr, "");</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;"><span style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;"><br />
</span></span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;"><span style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">Close:</span></span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">UnitySendMessage([_gameObjectName UTF8String], [messageName UTF8String], "");</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;"><br />
</span>
</p>
<p style="white-space:normal;font-family:微软雅黑, "margin-top:0px;margin-bottom:0px;padding:0px;color:#323232;font-size:14px;background-color:#FFFFFF;">
<span style="margin:0px;padding:0px;line-height:3;">Call the registered event listener and the initialization method in didFinishLauchingWithOptions, where the productKey and productCode are obtained by the QuickSDK background.<br />
So far, the master package project has been completed. You can compile and run it and use the quick packaging tool to generate other channel packages. For the use of the packaging tool, please refer to the instructions for the packaging tool.<br />
<span style="color:#E53333;">Note: If the packaged channel ipa runs abnormally on the mobile phone, you can use the debugging project generated by the tool to debug. The debugging project name is game project name channel number.xcodeproj, and the path is in the same directory of the game project.</span><br />
<span style="color:#E53333;"></span><br />
</span>
</p>
<br />
<p>
<br />
</p>
<br />
<p>
<br />
</p>
<p>
<span style="font-size:16px;"><br />
</span>
</p>