BBATabBarStatisticsInterface.h 1.55 KB
//
//  BBATabBarStatisticsInterface.h
//  BBAUIKit
//
//  Created by lijianfan on 2020/4/22.
//  Copyright © 2020 Baidu. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol BBATabBarStatisticsProtocol <NSObject>

/// 底barItem 点击事件记录
/// @param identify 业务唯一标识
/// @param value tab | current (注首页例外记录:home-吸顶态切换默认态、home_refresh-触发刷新且熊掌无飘新、refresh-熊掌bar有飘新时点击触发刷新)
+ (void)barItemClickedRecordWithIdentify:(NSString *)identify
                                   value:(NSString *)value;

/// 底barItem 点击事件记录
/// @param identify 业务唯一标识
/// @param value tab | current (注首页例外记录:home-吸顶态切换默认态、home_refresh-触发刷新且熊掌无飘新、refresh-熊掌bar有飘新时点击触发刷新)
/// @param ext 额外信息
+ (void)barItemClickedRecordWithIdentify:(NSString *)identify
                                   value:(NSString *)value
                                     ext:(NSString *)ext;

@end

/// 底bar点击事件统计,默认会自动开启事件统计,如果设置bbaDisableStatistics为YES,需要业务方手动打点
/// DESC: 在上层业务BBATabbarStatisticsManager实现数据上报能力
@interface BBATabBarStatisticsInterface : NSObject<BBATabBarStatisticsProtocol>

/**
 * @brief 注册代理方法实现类(遵循BBATabBarStatisticsProtocol)
 *
 * @param delegateClass 代理实现类
 */
+ (void)registerDelegateClass:(Class<BBATabBarStatisticsProtocol>)delegateClass;

@end