BBADialogConfigItem.h 1.08 KB
//
//  BBADialogConfigItem.h
//  BBAPods-BBAUIKit
//
//  Created by hyman on 2017/11/29.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, BBADialogShowAnimationType) {
    BBADialogShowAnimationType_Default,
    BBADialogShowAnimationType_Alert,
    BBADialogShowAnimationType_Tip
};

@interface BBADialogConfigItem : NSObject

@property (nonatomic, assign) BOOL shouldAutorotate;
@property (nonatomic, assign) UIInterfaceOrientationMask supportedInterfaceOrientations;
@property (nonatomic, assign) UIInterfaceOrientation preferredInterfaceOrientationForPresentation;

@property (nonatomic, copy) BOOL (^shouldAutorotateBlock)(void);
@property (nonatomic, copy) UIInterfaceOrientationMask (^supportedInterfaceOrientationsBlock)(void);
@property (nonatomic, copy) UIInterfaceOrientation (^preferredInterfaceOrientationForPresentationBlock)(void);

/// 弹窗是否只涵盖当前全屏VC(若指定了,则弹窗将展现在该VC上,请保证该VC是全屏的)
@property (nonatomic, weak) UIViewController *coveredFullScreenVC;

@end