更新日期:2017年 12月 01日QuickSDK-Objective-C(iOS)
<h3>1.Development kit instructions</h3><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 16px;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei;"> · <span style="color: rgb(102, 102, 102); font-family: Tahoma,Arial,宋体,"Malgun Gothic"; 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;">SMPCQuickSDK. The framework is the foundation library, libSMPCQuickChannel. Each channel a is the implementation of the library.</span></span></strong></span></p><h3>2.Access to the steps</h3><h4><span style="color: rgb(255, 192, 0);"><strong> 2.1 QuickSDK process</strong></span></h4><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"></span></strong></span><span id="tran_0" data-aligning="#tran_0,#src_0" class="copied" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; color: rgb(102, 102, 102); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8);"></span><span style="font-size: 16px;"> <span id="tran_0" data-aligning="#tran_0,#src_0" class="copied" style="margin: 0px; padding: 0px; border: 0px none; outline: 0px none; color: rgb(102, 102, 102); font-family: Tahoma,Arial,宋体,"Malgun Gothic"; 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);">Games, access to the SDK comes with female package library interface.</span><br style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8);"/><span id="tran_1" data-aligning="#tran_1,#src_1" class="copied" style="margin: 0px; padding: 0px; border: 0px none; outline: 0px none; color: rgb(102, 102, 102); font-family: Tahoma,Arial,宋体,"Malgun Gothic"; 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);"> In the channels of QuickSDK add background, configuration parameters.</span><br style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8);"/><span id="tran_2" data-aligning="#tran_2,#src_2" class="copied highLight" style="margin: 0px; padding: 0px; border: 0px none; outline: 0px none; color: rgb(102, 102, 102); font-family: Tahoma,Arial,宋体,"Malgun Gothic"; 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);"> Test after use, packaging tools to generate channel, part of the channel to escape equipment test.</span></span><span id="tran_2" data-aligning="#tran_2,#src_2" class="copied highLight" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; color: rgb(102, 102, 102); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8);"></span><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"></span></strong></span></p><h4><span style="color: rgb(255, 192, 0);"> 2.2 Development environment configuration</span></h4><p><span style="font-family: 微软雅黑,Microsoft YaHei;"> will SMPCQuickSDK. Framework and female bag libSMPCQuickChannel. A added to the project, and select the corresponding target<br style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8);"/></span></p><p style="line-height: 3em;"><span style="font-size: 16px; color: rgb(0, 0, 0); font-family: 微软雅黑,Microsoft YaHei;"> Will Architectures, in the Build Settings set to armv7 + arm64, need support arm64 project itself.<br style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8);"/> Other would add - ObjC Flags</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <img src="http://data.quicksdk.net//data/newFiles/image/20171130/1512034210825893.png" title="1452827233624023.png" alt="123.png"/></span></p><p><br/></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> </span></strong></span>The direction of the selected game compatible, Device Orientation.Common configuration</p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> </span></strong><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"><img src="/data/newFiles/image/20171130/1512029869283756.png" title="1458789174161068.png" alt="1.png"/></span></strong></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> </span></strong><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"><img src="/data/newFiles/image/20171130/1512029872714529.png" title="1458789178689621.png" alt="2.png"/></span></strong></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> </span></strong></span></p><p><span style="font-size: 16px; color: rgb(0, 0, 0);"> info. Plist add to allow HTTP access</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong style="line-height: 48px; white-space: normal;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> </span></strong><strong style="line-height: 48px; white-space: normal;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"><img src="/data/newFiles/image/20171130/1512029873666777.png" title="1457597955974009.png" alt="2.png"/></span></strong></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong style="line-height: 48px; white-space: normal;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> <strong style="line-height: 48px; white-space: normal;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;">Game is configured</span></strong></span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"><span style="font-size: 14px; font-family: "微软雅黑",sans-serif;"></span></span><span style="margin: 0px; padding: 0px; border: 0px none; outline: 0px none; color: rgb(102, 102, 102); 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; font-size: 16px; font-family: 微软雅黑,Microsoft YaHei; background-color: rgb(255, 255, 255);">The Version of the game (CFBundleShortVersionString) and Build (CFBundleVersion) must be consistent, and using the point X.Y.Z fraction, such as: 1.2.1</span><span style="font-size: 16px; font-family: 微软雅黑,Microsoft YaHei;"><span id="tran_0" data-aligning="#tran_0,#src_0" class="copied inactive" style="font-size: 16px; margin: 0px; padding: 0px; border: 0px none; outline: 0px none; color: rgb(102, 102, 102); background-color: rgb(238, 238, 238); 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;"></span><br style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8);"/><span id="tran_1" data-aligning="#tran_1,#src_1" class="copied" style="font-size: 16px; margin: 0px; padding: 0px; border: 0px none; outline: 0px none; color: rgb(102, 102, 102); 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);">In front of the Numbers don't add 0.Because each channel update reads the Version number is different, set Version and Build consensus to ensure that all channels to update all, if this is not willing to set up, debugging can be generated through the engineering manual package there is a requirement for such channels, require the Version and Build consistent channel is not much, can after audit can modify again.</span><span style="font-size: 16px;"></span></span></p><p><span style="line-height: 3em; font-family: 微软雅黑,Microsoft YaHei;"> <img src="/data/newFiles/image/20171130/1512029873388943.png" title="1458034056773242.png" alt="1.png"/></span><br/></p><h3>3.Interface specification</h3><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> <span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 16px;"><span style="color: rgb(102, 102, 102); font-family: Tahoma,Arial,宋体,"Malgun Gothic"; 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;">First configuration project information</span></span></span></p><h4 style="line-height: 3em;"><span style="font-size: 16px; color: rgb(255, 192, 0); font-family: 微软雅黑,Microsoft YaHei;"> 3.1 Initialize(<span style="font-size:14px;font-family:'Times New Roman',serif">necessarily</span>)</span></h4><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <strong>3.1.1 instance<br/></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> Class:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> function:+ (SMPCQuickSDK *)defaultInstance;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> instructions:Get QuickSDK instance </span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.1.2 init QuickSDK</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:</span></p><pre class="brush:java;toolbar:false"><span style="font-family: 微软雅黑,Microsoft YaHei;">- (int)initWithConfig:(SMPCQuickSDKInitConfigure *)configure application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;<br/></span></pre><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Use productKey, productCode, initialize the SDK, by QuickSDK distribution platform, on the iOS packaging tools as you can see, the need when packaging and iOS packaging tools on the choice of product parameters.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> parameter:Configure encapsulates the productKey and productCode</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> application: Application of application, the parameters of the function call intact incoming</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> launchOptions:Application launchOptions, calls the function of the parameters of the intact incoming.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:The interface need to call in the application loaded callback, namely</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{}</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> </span><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures;"> - (</span><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">int</span><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures;">)initWithConfig:(</span><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">UIApplication</span><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures;"> *)application didFinishLaunchingWithOptions:(</span><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">NSDictionary</span><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures;"> *)launchOptions;</span></span><span style="color: rgb(0, 132, 0); font-size: 11px; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;"></span><span style="color: rgb(0, 132, 0); font-family: "PingFang SC"; font-size: 11px; font-variant-ligatures: no-common-ligatures;"><span style="color: rgb(102, 102, 102); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(255, 255, 255, 0.8); display: inline !important; float: none;">/ / design for QuickSDK technician test used to initialize interface.When using this initialization scheme, QuickSDK will use packaging tools on the choice of product configuration corresponding to the background of SMPCQuickSDKInitConfigure, so suitable for mother not debugging package engineering directly out of the channel package engineering and channels to debug the situation.</span></span></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"><br/></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Example</span>:</span></p><pre class="brush:java;toolbar:false"><span style="font-family: 微软雅黑,Microsoft YaHei;">[[NSNotificationCenter defaultCenter] addObserver:self<br/> selector:@selector(smpcQpInitResult:)<br/> name:kSmpcQuickSDKNotiInitDidFinished<br/> object:nil];<br/> - (void)smpcQpInitResult:(NSNotification *)notify {<br/> NSLog(@"%@",notify);<br/> }<br/> <br/> SMPCQuickSDKInitConfigure *cfg = [[SMPCQuickSDKInitConfigure alloc] init];<br/> cfg.productKey = @”09633196”;<br/> cfg.productCode = @”50840817638746911281319234382938”; <br/> int error = [[SMPCQuickSDK defaultInstance] initWithConfig:cfg application: application didFinishLaunchingWithOptions:launchOptions];<br/> if (error != 0) {<br/> NSLog(@"Initialization failed:%d",error);<br/> }<br/></span></pre><p><br/><br/></p><h4 style="line-height: 3em;"><span style="font-size: 16px; color: rgb(255, 192, 0); font-family: 微软雅黑,Microsoft YaHei;"> 3.2 Uesr API<br/></span></h4><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.2.1 Log in(<span style="font-size:14px;font-family:'Times New Roman',serif">necessarily</span>)</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (int)login;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Log in procedure</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> return value<span style="color: rgb(102, 102, 102); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238); display: inline !important; float: none;"></span>:If the returned value is 0 the calling API is succeed, if there’s other value refer to returned value instruction<br/> After receiving log in notification kSmpcQuickSDKNotiLogin,that you can get returned value userInfo, user uid,user name and user_token,or obtain uid by using API,Name, reference demo(which is optional) by obtaining the user information by user_token from the server.There is relevant example of using the API. this uid is only identification which is provided by markets SDK, and there may be repeated uid in different markets.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> Example:</span></p><pre class="brush:java;toolbar:false"><span style="font-family: 微软雅黑,Microsoft YaHei;">5..(void)smpcQpLoginResult:(NSNotification *)notify {<br/>NSDictionary *userInfo = [notify userInfo];<br/>int error = [userInfo objectForKey:@”error”] intValue];<br/>if (error == 0) {<br/> NSString *uid = [[SMPCQuickSDK defaultInstance] userId];<br/> NSString *userNick = [[SMPCQuickSDK defaultInstance] userNick];<br/> NSString *user_token = [[SMPCQuickSDK defaultInstance] userToken];<br/>}<br/>}<br/></span></pre><p><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"><br/></span></p><p><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"><strong> 3.2.2 Log out API<br/></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>: - (int)logout;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Log out the current users.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">return value</span>:0 stands for success, other value refer to instructions</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> Attention:Calling Log out API ,QuickSDK will send a log out notificationkSmpcQuickSDKNotiLogout。</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.2.3 User uid</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (NSString *)userId;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:<span style="font-size: 14px; font-family: "微软雅黑",sans-serif;">To obtain currently logged in user uid, this uid is only identification which is provided by markets SDK, and there may be repeated uid in different markets.</span></span></p><p><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">return value</span>:</span><span style="font-size:13px">Current logged in user uid </span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span></p><p style="white-space: normal; line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.2.4 User userToken</span></strong></span></p><p style="white-space: normal; line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="white-space: normal; line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (NSString *)userToken</span></p><p style="white-space: normal; line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:<span style="font-size: 14px; font-family: 微软雅黑,sans-serif;">Obtain th</span></span><span style="font-size: 14px; font-family: 微软雅黑,sans-serif;">e last log in user userToken to test user identity on server.</span></p><p><span style="font-size: 14px; font-family: 微软雅黑,sans-serif;"> return value:The userToken of current log in user or the last log in user</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"><br/></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.2.5 User name<br/></span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (NSString *)userNick;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"><br/></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.2.6 updating role information (necessarily)</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (void)updateRoleInfoWith:(SMPCQuickSDKGameRoleInfo *)info isCreate:(BOOL)isCreate;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Updating role information.isCreate means whether create role when accessing game calling role updating.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> parameter:info role information object,reference class SMPCQuickSDKGameRoleInfo returned value;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">return value</span>: </span></p><h4 style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"></span><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(255, 192, 0); font-size: 16px;"> 3.3 Recharge API<br/></span></span></h4><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.3.1 <span style="font-size:14px;font-family:'Times New Roman',serif">Recharge (necessarily)</span></span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (int)payOrderInfo:(SMPCQuickSDKPayOrderInfo *)orderInfo</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> roleInfo:(SMPCQuickSDKGameRoleInfo *)roleInfo;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Order payment</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> parameter:orderInfo order information<br/> roleInfo player role information <br/></span></p><pre class="brush:java;toolbar:false">instructions:
productName of orderinfo is just a general name , such as ‘Gold’,’Ingot’, quantity of product is not included in productName; quantifier means unit ; count means quantity ; amount means total prices, the unit price is integer or decimal that can be calculated by integer via dividing 10, and total price must equal unit price multiply by quantity.
The product name of market recharge API: count+quantifier+productName;Price is amount.</pre><p style="line-height: 3em;"><span style="color: rgb(255, 0, 0); font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Asynchronous recharge, Game client will receive the recharge result notification if players recharged.kSmpcQuickSDKNotiRecharge,SDK notification is for reference only, the official result is subjected to QuickSDK server synchronization.</span></p><h4 style="line-height: 3em;"><span style="font-size: 16px; color: rgb(255, 192, 0); font-family: 微软雅黑,Microsoft YaHei;"> 3.4 Extension API<br/></span></h4><p><br/></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.4.1 <span style="font-size:14px;font-family:'Times New Roman',serif">AppDelegate Events call(necessarily)</span></span></strong></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> </span></strong><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(255, 0, 0);"><strong><span style="color: rgb(255, 0, 0); font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;">Instruction: There’s no need for Unity3D and Cocos2d-x game to access following code while QuickTool will auto add them.</span></strong></span><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"><br/><br/></span></strong></span></p><pre class="brush:java;toolbar:false"><span style="font-family: 微软雅黑,Microsoft YaHei;">- (void)applicationWillResignActive:(UIApplication *)application {<br/> [[SMPCQuickSDK defaultInstance] applicationWillResignActive:application];<br/>}<br/>- (void) applicationDidEnterBackground:(UIApplication *)application {<br/> [[SMPCQuickSDK defaultInstance] applicationDidEnterBackground:application];<br/>}<br/>- (void) applicationWillEnterForeground:(UIApplication *)application {<br/> <br/> [[SMPCQuickSDK defaultInstance] applicationWillEnterForeground:application];<br/>}<br/>- (void) applicationDidBecomeActive:(UIApplication *)application {<br/> [[SMPCQuickSDK defaultInstance] applicationDidBecomeActive:application];<br/>}<br/>- (void) applicationWillTerminate:(UIApplication *)application {<br/> [[SMPCQuickSDK defaultInstance] applicationWillTerminate:application];<br/>}<br/>- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken<br/> {<br/> [[SMPCQuickSDK defaultInstance] application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];<br/>}<br/>- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error<br/> {<br/> [[SMPCQuickSDK defaultInstance] application:application didFailToRegisterForRemoteNotificationsWithError:error];<br/>}<br/>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo{<br/> [[SMPCQuickSDK defaultInstance] application:application didReceiveRemoteNotification:userInfo];<br/>}<br/>-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(nullable UIWindow *)window<br/>{<br/> [[SMPCQuickSDK defaultInstance] application:application supportedInterfaceOrientationsForWindow:window];<br/> return UIInterfaceOrientationMaskAll;<br/>}<br/> - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{<br/> [[SMPCQuickSDK defaultInstance] openURL:url application:application];<br/> return YES;<br/>}<br/> - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{<br/> [[SMPCQuickSDK defaultInstance] openURL:url sourceApplication:sourceApplication application:application annotation:annotation];<br/> return YES;<br/>}<br/> - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options{<br/> [[SMPCQuickSDK defaultInstance] openURL:url application:app options:options];<br/> return YES;<br/>}<br/></span></pre><p><br/></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.4.2 Showing Floating menu</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (void)showToolBar:(SMPC_QUICK_SDK_TOOLBAR_PLACE)place;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Showing floating toolbar,if there’s no such corresponding API to market, the calling is failed.</span></p><p><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> Example:calling when user log in succeed</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> [[SMPCQuickSDK defaultInstance] showToolBar:SMPC_QUICK_SDK_TOOLBAR_TOP_LEFT];</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.4.3 Hiding Floating menu</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (void)hideToolBar;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Hiding floating toolbar,if there’s no such corresponding API to market, the calling is failed.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> Example:Hiding if it is necessary.</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.4.4 Access in User center</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (int)enterUserCenter;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Access in user center, if there’s no such corresponding API to market, the calling is failed.</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.4.5 Access in customer service center</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:- (int)enterCustomerCenter;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Access in customer service center.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> if there’s no such corresponding API to market, call it directly will return the unsupported error code to API. <br/></span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.4.6 Access in BBS</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>: - (int)enterBBS;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Access in BBS</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> if there’s no such corresponding API to market, call it directly will return the unsupported error code to API.</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei;"><strong><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> 3.4.7 Whether to support the assigned method</span></strong></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">Class</span>:SMPCQuickSDK</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">function</span>:-(BOOL)isFunctionTypeSupported:(SMPC_QUICK_SDK_FUNC_TYPE)type;</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:To judge market SDK whether support the API, the APIs such as user center,customer service center,BBS and pause etc,are not all availiable to each market,so it can be judged in code. if there’s no such corresponding API to market, call it directly will return the unsupported error code to API, calling failed,noting would happen.</span></p><h4 style="line-height: 3em;"><span style="color: rgb(255, 192, 0); font-size: 16px; font-family: 微软雅黑,Microsoft YaHei;"> 3.5 Other APIs<br/></span></h4><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"></span></p><pre class="brush:java;toolbar:false"><span style="font-family: 微软雅黑,Microsoft YaHei;">- (int)channelType; // the only identification of market<br/>#pragma mark The basic information platform<br/>- (NSString *)getConfigValue:(NSString *)key; // obtain the user-defined parameter which was configured in Quick background.<br/></span></pre><h2 style="line-height: 3em;"><span style="font-size: 18px; font-family: 微软雅黑,Microsoft YaHei;">4.SDKnotify instruction</span></h2><h4 style="line-height: 3em;"><span style="font-size: 16px; color: rgb(255, 192, 0); font-family: 微软雅黑,Microsoft YaHei;"> 4.1 Initialization notification</span></h4><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> attribute:kSmpcQuickSDKNotiInitDidFinished</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Calling initialization API,then asynchronization.Whether the SDK initialization successed can be judge by error code after receiving the notification.</span></p><pre class="brush:java;toolbar:false"><span style="font-family: 微软雅黑,Microsoft YaHei;">SMPC_QUICK_SDK_ERROR_NONE、SMPC_QUICK_SDK_ERROR_INIT_FAILED。<br/>NSDictionary *userInfo = notify.userInfo;<br/>int errorCode = [userInfo[kSmpcQuickSDKKeyError] intValue];<br/>switch (errorCode) {<br/> case SMPC_QUICK_SDK_ERROR_NONE:<br/> {<br/> }<br/>break;<br/> case SMPC_QUICK_SDK_ERROR_INIT_FAILED:<br/> default:<br/> {<br/> }<br/>break;<br/>}<br/></span></pre><h4><span style="font-size: 16px; color: rgb(255, 192, 0); font-family: 微软雅黑,Microsoft YaHei;"> 4.2 Login success notification</span></h4><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> attribute:kSmpcQuickSDKNotiLogin</span></p><p style="line-height: 3em;"><span style="font-family: 微软雅黑,Microsoft YaHei; font-size: 14px;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Once market SDK user login successed,it will receive the notification.If the error code shows user identification failed, user information can not pass the market user login second test,that need to call log out API.Recalling login in log out notification, contact us to obtain relevant user test failed information.</span></p><h4 style="line-height: 3em;"><span style="color: rgb(255, 192, 0); font-size: 16px; font-family: 微软雅黑,Microsoft YaHei;"> 4.3 Log out notification</span></h4><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> attribute:kSmpcQuickSDKNotiLogout</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:There are 2 situations</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span>A)Users successfully log out from market SDK user management interface.<br/> B)Game client call QuickSDK user log out,to judge whether the log out successed by error code.<br/><br/><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"></span></p><h4 style="line-height: 3em;"><span style="font-size: 16px; color: rgb(255, 192, 0); font-family: 微软雅黑,Microsoft YaHei;"> 4.4 Recharge result notification</span></h4><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> attribute:kSmpcQuickSDKNotiRecharge</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Calling QuickSDK recharge API successed.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> There are 3 notification results situation which was judged by error code (SMPC_QUICK_SDK_ERROR_NONE、SMPC_QUICK_SDK_ERROR_RECHARGE_FAILED、 SMPC_QUICK_SDK_ERROR_RECHARGE_CANCELLED)</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> The result is for reference only, the official result according to server synchronization.<br/></span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> userInfo notification instruction:</span></p><pre class="brush:java;toolbar:false"><span style="font-family: 微软雅黑,Microsoft YaHei;">int error = [[userInfo objectForKey:kSmpcQuickSDKKeyError] intValue]; //QuickSDK OrderID、cpOrderID<br/>NSString *orderID = userInfo[kSmpcQuickSDKKeyOrderId];<br/>NSString *cpOrderID = userInfo[kSmpcQuickSDKKeyCpOrderId]; <br/></span></pre><p><br/></p><h4 style="line-height: 3em;"><span style="font-size: 16px; color: rgb(255, 192, 0); font-family: 微软雅黑,Microsoft YaHei;"> 4.5 Suspended over notice</span></h4><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> attribute:kSmpcQuickSDKNotiPauseOver</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> <span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;">instructions</span>:Don't listen, some source SDK pause at the end of the notice</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span></p><h3 style="line-height: 3em;"><span style="font-size: 18px; font-family: 微软雅黑,Microsoft YaHei;"> 5.API instructin</span></h3><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> All markets of QuickSDK support initialization API, User API, Recharge API. All APIs can be called directly,if market does not support, the calling is failed.</span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span></p><p style="line-height: 3em;"><span style="font-size: 14px; font-family: 微软雅黑,Microsoft YaHei;"> </span></p><p><br/></p><p><br/></p>