91嫩草国内在线,韩国理论电影免费看,6969精品视频在线观看,1024在线视频精品免费,色中色污,饭冈佳奈子在线
跳至內容
Cobub文檔中心
用戶工具
登錄
站點工具
工具
顯示頁面
修訂記錄
反向鏈接
媒體管理器
網站地圖
登錄
媒體管理器
網站地圖
本頁面只讀。您可以查看源文件,但不能更改它。如果您覺得這是系統錯誤,請聯系管理員。
====== Cobub Razor iOS Developer Guide ====== ===== 1 Overview ===== ==== 1.1 Documentation Goal ==== The goal of this document is to explain usage rules of Cobub Razor iOS SDK for facilitating developers ==== 1.2 Application Scope ==== This document is for iOS SDK developers, which uses the Open Source Mobile Analytics – Cobub Razor ===== 2 Basic Setup Guide ===== ==== 2.1 Obtain APPkey ==== First please set up the Web Server of Cobub Razor ([[en:razor:installation|instruction]]), then register App onweb server and fill App info after login. Once App is created successfully, you could obtain AppKey. ==== 2.2 SDK Usage Step ==== === 2.2.1 Download SDK === Download the latest release of SDK and Unzip it. Once unzipped, you could see two files, UMSAgent.h and libUMSAgent.a. === 2.2.2 Import SDK === Select Add->Existing files in project directory and select the two unzipped files above, or drag two files to project directory directly. Select Copy Items into destination group’s folder(if needed). {{:en:razor:20150318-075044.png}} === 2.2.3 Add Dependent Framework === To obtain network info and operator logo, you need adding CoreTelephony Class Library. {{:en:razor:20150318-075129.png}} === 2.2.4 Setup Other Linker Flags === Add –all_load and –ObjC flags {{:en:razor:20150318-075233.png}} === 2.2.5 Embed Code === Add #import “UMSAgent.h” into AppDelegate.h. Add following method into didFinishLaunchingWithOptions method of AppDelegate.m: <code>[UMSAgent startWithAppKey:@"14aaa92e098df46cb63ed5196e0c331c" ReportPolicy:BATCH ServerURL:@ "YOUR SDK SERVICE URL"]; -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *) launchOptions { [UMSAgent startWith]AppKey:@"UMSAgentKey" ReportPolicy:BATCH]; }</code> UMSAgentKey is the AgentKey obtained from registering App in UMS. ServiceURL is Service interface url of Server SDK. BATCH model means that uploading data once when system starts next time Please modify BATCH to REALTIME if you want to use real-time model. BATCH model is recommended. It can reduce interaction between App and network, save traffic and improve user experience **Usage Duration Analytics** UMS platform defines intervals between entering front and entering background of App every time as a lifecycle process. UMS makes lifecycle as data and submits it to UMS background. It provides corresponding data statistics reports for developers. === 2.2.6 Custom Event ===
en/razor/ios-developer-guide.1426665262.txt.gz
· 最后更改: 2017/07/14 11:12 (外部編輯)
頁面工具
顯示頁面
修訂記錄
反向鏈接
回到頂部
? Copyright 2012 - 2015
南京西橋科技有限公司
Western Bridge Tech Co., Ltd.
蘇ICP備13039116號-1