OOVASTOffset.h
1 #import <Foundation/Foundation.h>
2 
3 typedef NS_ENUM(NSInteger, OffsetType) {
4  OffsetTypeSeconds,
5  OffsetTypePercentage,
6  OffsetTypePosition
7 };
8 
13 @interface OOVASTOffset : NSObject
14 
15 @property (readonly, nonatomic, assign) OffsetType type;
16 
17 - (id)initWithType:(OffsetType)type value:(Float64)value;
18 - (id)initWithOffset:(NSString *)offsetStr;
19 
20 - (Float64)getPercentage;
21 - (Float64)getSeconds;
22 - (NSInteger)getPosition;
23 @end
OffsetType type
Definition: OOVASTOffset.h:15
Float64 getSeconds()
Defines an offset for when ad-related events should happen around VAST ads.
Definition: OOVASTOffset.h:13
NSInteger getPosition()
Float64 getPercentage()