BBABubbleGuideViewDefine.h 1.39 KB
//
//  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 */