ifish/Ifish/HTTPDNS/AlicloudUtils.framework/Headers/AlicloudReport.h

69 lines
1.3 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// AlicloudReport.h
// AlicloudUtils
//
// Created by ryan on 3/6/2016.
// Copyright © 2016 Ali. All rights reserved.
//
#ifndef AlicloudReport_h
#define AlicloudReport_h
extern const NSString *EXT_INFO_KEY_VERSION;
extern const NSString *EXT_INFO_KEY_PACKAGE;
// SDK标识
typedef NS_ENUM(NSInteger, AMSService) {
AMSMAN = 0,
AMSHTTPDNS,
AMSMPUSH,
AMSMAC,
AMSAPI,
AMSHOTFIX,
AMSFEEDBACK,
AMSIM
};
// 上报状态
typedef NS_ENUM(NSInteger, AMSReportStatus) {
AMS_UNREPORTED_STATUS,
AMS_REPORTED_STATUS
};
@interface AlicloudReport : NSObject
/**
* 异步上报活跃设备统计
*
@param tag SDK标识
*/
+ (void)statAsync:(AMSService)tag;
/**
* 异步上报活跃设备统计并携带附加信息
*
@param tag SDK标识
@param extInfo 附加上报信息 { EXT_INFO_KEY_VERSION :"x.x.x", EXT_INFO_KEY_PACKAGE: "xxx"}
*/
+ (void)statAsync:(AMSService)tag extInfo:(NSDictionary *)extInfo;
/**
* 获取指定SDK标识上报状态
*
@param tag SDK标识
@return 返回上报状态
*/
+ (AMSReportStatus)getReportStatus:(AMSService)tag;
/**
* 获取上报状态(兼容老版本接口)
*
@param tag SDK标识
@return YES已经上报 NO没有上报
*/
+ (BOOL)isDeviceReported:(AMSService)tag;
@end
#endif /* AlicloudReport_h */