RCAnalytics 0.2.0

RCAnalytics 0.2.0

测试测试过的
Lang语言 SwiftSwift
许可协议 MIT
发布上次发布2016年7月
SPM支持SPM

Josh Minzner维护。



  • Reelcontent, Inc.

RCAnalytics

安装

安装RCAnalytics

  1. 将RCAnalytics作为依赖项添加

    target 'MyAppTargetHere' do
        use_frameworks!
    
        pod "RCAnalytics", "~> 0.2.0"
    end
  2. 安装依赖项

    $> pod install

使用方法

  1. 从Reelcontent Showcase平台获取你的产品ID
  2. 在应用程序启动时初始化RCAnalytics

    Swift中使用

    import UIKit;
    import RCAnalytics;
    
    @UIApplicationMain
    class AppDelegate: UIResponder, UIApplicationDelegate {
        // called after your app launches
        func application(
            application: UIApplication,
            didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?
        ) -> Bool {
            RCAnalytics.create("your-product-id-here").launch(); // Launch RCAnalytics
            return true;
        }
    }

    Objective-C中使用

    #import "AppDelegate.h"
    #import <Foundation/Foundation.h>
    @import RCAnalytics;
    
    @implementation AppDelegate
        // called after your app launches
        -(BOOL)
            application:(UIApplication *)application
            didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
        {
            [[RCAnalytics create:@"your-product-id-here"] launch]; // Launch RCAnalytics
            return YES;
        }
    @end

作者

Reelcontent, Inc., [email protected]

许可协议

RCAnalytics可在MIT许可协议下使用。有关更多信息,请参阅LICENSE文件。