5.1 初始化SDK

将SDK文件添加到工程后,在AppDelegateimport “V5ClientAgent.h“文件,然后在 application: willFinishLaunchingWithOptions:函数中初始化 SDK 。示例如下:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    // 初始化SDK
    [V5ClientAgent initWithSiteId:@"10000"
                            appId:@"19cfb0800f474"
                   exceptionBlock:nil];
    return YES;
}

其中 siteIdaccount 分别是从 V5 后台可以获取到的站点编号和AppID。

SDK后台配置

results matching ""

    No results matching ""

    results matching ""

      No results matching ""