SCTVOSSDK 23.0.0
Smartclip Advertisement Framework for tvOS
Loading...
Searching...
No Matches
SCAdConfiguration.h
1//
2// SCAdConfiguration.h
3// SCTVOSSDK
4//
5// Copyright © 2018 smartclip. All rights reserved.
6//
7
8#import <Foundation/Foundation.h>
9#import <UIKit/UIKit.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
14
18@interface SCAdConfiguration : NSObject
20@property (nonatomic, copy) NSString *adURL;
22@property (nonatomic, copy) NSString *bundleId;
24@property (nonatomic, strong) SCAdEnvironment *environment;
26@property (nonatomic, strong) SCAdVariants *variants;
28@property (nonatomic, copy) NSString* _Nullable customTitle;
30@property (nonatomic, strong) UIColor* _Nullable customTitleColor;
32@property (nonatomic, strong) UIColor* _Nullable customProgressBarColor;
34@property (nonatomic) BOOL allowAdSkipping;
36@property (nonatomic) NSInteger skipOffset;
38@property (nonatomic) BOOL forceOpener;
40@property (nonatomic) BOOL forceCloser;
42@property (nonatomic) BOOL forceBumper;
43
45+ (SCAdConfiguration*)defaultTVOSConfigurationWith:(SCAdEnvironment*)environment;
47+ (SCAdConfiguration*)defaultConfigurationWith:(NSString*)requestURL variants:(SCAdVariants*)variants;
49+ (SCAdConfiguration*)defaultConfigurationWith:(NSString*)requestURL variants:(SCAdVariants*)variants environment:(SCAdEnvironment*)environment;
50@end
51
52NS_ASSUME_NONNULL_END
Definition: SCAdConfiguration.h:19
SCAdVariants * variants
If you use opener, closer or bumper, SCAdVariants is the place to define them.
Definition: SCAdConfiguration.h:26
BOOL forceOpener
force opener playback
Definition: SCAdConfiguration.h:38
SCAdEnvironment * environment
Use this to enable bitrate calculation, or set desiredBitrate.
Definition: SCAdConfiguration.h:24
BOOL allowAdSkipping
You can prevent ad skipping with this boolean value, defaults to true.
Definition: SCAdConfiguration.h:34
NSString *_Nullable customTitle
Use this property to specify a custom title for the ad.
Definition: SCAdConfiguration.h:28
UIColor *_Nullable customTitleColor
Use this property to specify a custom title color for the ad.
Definition: SCAdConfiguration.h:30
NSString * adURL
The request url for you advertisement content.
Definition: SCAdConfiguration.h:20
NSString * bundleId
BundleId of the app.
Definition: SCAdConfiguration.h:22
BOOL forceCloser
force closer playback
Definition: SCAdConfiguration.h:40
UIColor *_Nullable customProgressBarColor
Use this property to specify a custom progress bar color for the ad.
Definition: SCAdConfiguration.h:32
NSInteger skipOffset
You can define an offset value, when you want to allow ad skipping (defaults to -1,...
Definition: SCAdConfiguration.h:36
BOOL forceBumper
force bumper playback
Definition: SCAdConfiguration.h:42
Definition: SCAdEnvironment.h:18
Definition: SCAdVariants.h:16