-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGInsightSDK.h
50 lines (40 loc) · 1.32 KB
/
GInsightSDK.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// GInsightSDK.h
// GInsightSDK
//
// Created by j on 16/5/3.
// Copyright © 2016年 getui. All rights reserved.
// version:2.0.0.0
#import <Foundation/Foundation.h>
DEPRECATED_ATTRIBUTE
@protocol GInsightSDKDelegate <NSObject>
@optional
- (void)GInsightSDKDidReceiveGiuid:(NSString *)giUid;
- (void)GInsightSDKDidReceiveError:(NSError *)error;
@end
typedef void(^GISuccessCallback)(NSString *giUid);
typedef void(^GIFailCallback)(NSString *failInfo);
@interface GInsightSDK : NSObject
/**
* 初始化GInsightSDK(已废弃,请使用 [startSDK:channel:onSuccess:onFail:] )
*
* @param appId 应用在个推登记的APPID
* @param channel 渠道名称
* @param delegate 回调代理委托
*/
+ (void)startSDKWithAppId:(NSString *)appId channel:(NSString *)channel delegate:(id<GInsightSDKDelegate>)delegate DEPRECATED_MSG_ATTRIBUTE("Please use [startSDK:channel:onSuccess:onFail:] instead");
/**
初始化GInsightSDK
@param appId 应用在个推登记的APPID
@param channel 渠道名称
@param success 成功回调,返回cid
@param fail 错误回调,返回错误信息
*/
+ (void)startSDK:(NSString *)appId channel:(NSString *)channel onSuccess:(GISuccessCallback)success onFail:(GIFailCallback)fail;
/**
* 获取GInsightSDK版本号
*
* @return GInsightSDK 版本号
*/
+ (NSString *)version;
@end