//
|
// BUSize.h
|
// BUAdSDK
|
//
|
// Copyright © 2017 bytedance. All rights reserved.
|
//
|
|
#import <Foundation/Foundation.h>
|
|
/**
|
Get the view with the best results by using the predefined size in pixels.
|
When it comes to view display, it is recommended to use the same scaling.
|
*/
|
typedef NS_ENUM(NSInteger, BUProposalSize) {
|
BUProposalSize_Banner600_90,
|
BUProposalSize_Banner640_100,
|
BUProposalSize_Banner600_150,
|
BUProposalSize_Banner600_260,
|
BUProposalSize_Banner600_286,
|
BUProposalSize_Banner600_300,
|
BUProposalSize_Banner690_388,
|
BUProposalSize_Banner600_400,
|
BUProposalSize_Banner600_500,
|
BUProposalSize_Feed228_150,
|
BUProposalSize_Feed690_388,
|
BUProposalSize_Interstitial600_400,
|
BUProposalSize_Interstitial600_600,
|
BUProposalSize_Interstitial600_900,
|
BUProposalSize_DrawFullScreen
|
};
|
|
@interface BUSize : NSObject
|
|
// width unit pixel.
|
@property (nonatomic, assign) NSInteger width;
|
|
// height unit pixel.
|
@property (nonatomic, assign) NSInteger height;
|
|
- (NSDictionary *)dictionaryValue;
|
|
@end
|
|
@interface BUSize (BU_SizeFactory)
|
+ (instancetype)sizeBy:(BUProposalSize)proposalSize;
|
@end
|