iOS SDK 对接文档

iOS SDK 对接文档


设置AppDelegate

<h1>设置AppDelegate (共1步)</h1> <p><strong>此设置只用于全功能SDK,只具登陆功能的SDK不需要设置。</strong> 需要在 AppDelegate 中,实现下面方法,并调用SDKUI的对应方法。 该方法用于获取微信和支付宝支付结果的反馈。</p> <pre><code>import UIKit import BSSDKUI // 引用BSSDK @UIApplicationMain internal final class AppDelegate: UIResponder, UIApplicationDelegate { ... func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&amp;gt; Bool { BSSDKUI.application(application, didFinishLaunchingWithOptions: launchOptions) return true } func application(_ application: UIApplication, handleOpen url: URL) -&amp;gt; Bool { if BSSDKUI.application(application, handleOpen: url) { return true } return true } func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -&amp;gt; Bool { if #available(iOS 9.0, *) { BSSDKUI.application(app, open: url, options: options) } return true } func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -&amp;gt; Bool { BSSDKUI.application(application, open: url, sourceApplication: sourceApplication, annotation: annotation) return true } func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -&amp;gt; Void) -&amp;gt; Bool{ //判断是否通过OpenInstall Universal Link 唤起App if BSSDKUI.application(application, continue: userActivity, restorationHandler: restorationHandler) { return true } //其他第三方回调: return true } ... }</code></pre>

页面列表

ITEM_HTML