BBASMLaunchAdapterProtocol.h 781 Bytes
//
//  BBASMLaunchAdapterProtocol.h
//  SWAN
//
//  Created by baidu on 2018/11/5.
//  Copyright © 2018 baidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BBASMAdapterBaseImplement.h"

NS_ASSUME_NONNULL_BEGIN

/*
 * 本协议中方法为可选方法,如果宿主不实现,则会使用默认实现
 */
@protocol BBASMLaunchAdapterProtocol <NSObject>

@optional

/// 客户端上一个版本号
+ (NSString *)lastUpdateVersion;

/// 客户端是否本版本首次启动
+ (BOOL)isFirstLaunchApp;

/// 客户端是否全新安装后首次启动
+ (BOOL)isFirstLaunchAfterInstall;

/// 客户端是否升级安装后首次启动
+ (BOOL)isFirstLaunchAfterUpdate;

/// 客户端启动时间戳
+ (NSTimeInterval)coldLaunchTime;

@end

NS_ASSUME_NONNULL_END