BBABubbleGuideViewDefine.h
1.39 KB
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
51
52
//
// BBABubbleGuideViewDefine.h
// BBAUIKit
//
// Created by lijianfan on 2020/7/22.
// Copyright © 2020 Baidu. All rights reserved.
//
#ifndef BBABubbleGuideViewDefine_h
#define BBABubbleGuideViewDefine_h
/// 气泡箭头指向的方向
typedef NS_ENUM(NSUInteger, BBABubbleViewArrowDirection) {
/// 箭头向上
BBABubbleViewArrowDirectionUp,
/// 箭头向下
BBABubbleViewArrowDirectionDown,
/// 箭头向左
BBABubbleViewArrowDirectionLeft,
/// 箭头向右
BBABubbleViewArrowDirectionRight,
/// 上下左右自动选择, 默认
BBABubbleViewArrowDirectionAuto,
};
/// 气泡是否有蒙层
typedef NS_ENUM(NSUInteger, BBABubbleMaskViewType) {
/// 气泡不带有蒙层,不影响点击其它地方,默认为此类型
BBABubbleMaskViewTypeNone,
/// 气泡添加在蒙层中,只能点击气泡,点击其他地方无效
BBABubbleMaskViewTypeView,
};
/// 气泡消失类型
typedef NS_ENUM(NSUInteger, BBABubbleDismissType) {
/// 默认状态
BBABubbleDismissTypeNone,
/// 气泡延时周期之后消失
BBABubbleDismissTypeDuration,
/// 气泡被点击消失
BBABubbleDismissTypePress,
};
/// 附件视图的风格
typedef NS_ENUM(NSUInteger, BBABubbleAccessoryType) {
/// 没有视图
BBABubbleAccessoryNone,
/// 箭头视图
BBABubbleAccessoryDisclosureIndicator,
};
#endif /* BBABubbleGuideViewDefine_h */