BBASMLaunchAdapterProtocol.h
781 Bytes
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
//
// 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