SmartclipSDKiOS 3.0.0
Smartclip Advertisement Framework for iOS
Loading...
Searching...
No Matches
SCAdEnvironment.h
1//
2// SCAdEnvironment.h
3// SmartclipSDKiOS
4//
5// Copyright © 2018 smartclip. All rights reserved.
6//
7
8#import <Foundation/Foundation.h>
9#import <CoreGraphics/CGGeometry.h>
10
11NS_ASSUME_NONNULL_BEGIN
12@class SCAdMacros;
13
14
16@interface SCAdEnvironment : NSObject
17
19typedef enum DeviceType {
22
25
28
31
35
37typedef enum NetworkReachability {
40
43
46
50
52typedef struct SCTimeouts {
55 NSInteger adRequest;
59 NSInteger adRequestChain;
63 NSInteger adSlotRequest;
66 NSInteger videoRequest;
69 NSInteger vpaidRequest;
73 NSInteger vpaidReadiness;
79} SCTimeouts;
80
82@property (nonatomic) DeviceType deviceType;
83
85@property (nonatomic) NetworkReachability reachability;
86
88@property (nonatomic) NSInteger desiredBitrate;
89
91@property (nonatomic) CGSize screenSize;
92
94@property (nonatomic, strong) NSArray *desiredMimeTypes;
95
97@property (nonatomic, strong) SCAdMacros *macros;
98
99/* In order to replace invalid ads in a pod of ads instantly at runtime, buffet ads from wrapper responses must be loaded up-front. prefetchBuffetAds determines whether stand-alone ads (buffet) from wrapper tags will be loaded together with the pod of ads or not. Defaulting to false if omitted.
100 */
101@property (nonatomic) BOOL prefetchBuffetAds;
102
104@property (nonatomic) SCTimeouts timeouts;
105
107- (instancetype)init NS_UNAVAILABLE;
108
110- (instancetype)initWithMacros:(nonnull SCAdMacros*)macros NS_DESIGNATED_INITIALIZER;
111@end
112
113NS_ASSUME_NONNULL_END
This class is used to specify certain environment variables like desired bitrate, deviceType and scre...
Definition: SCAdEnvironment.h:17
NetworkReachability reachability
Specify network reachability.
Definition: SCAdEnvironment.h:85
CGSize screenSize
Value of the screenSize (if not specified, the values of the current device will be used)
Definition: SCAdEnvironment.h:91
DeviceType deviceType
Specify device type.
Definition: SCAdEnvironment.h:82
SCTimeouts timeouts
Timeout values.
Definition: SCAdEnvironment.h:104
NSArray * desiredMimeTypes
Desired mime types. Pass as array of strings.
Definition: SCAdEnvironment.h:94
DeviceType
enum DeviceType specifies the device type on which this is running (must be set from outside)
Definition: SCAdEnvironment.h:19
@ deviceTypeTablet
Device type tablet.
Definition: SCAdEnvironment.h:27
@ deviceTypeNone
No device type specified.
Definition: SCAdEnvironment.h:21
@ deviceTypeDesktop
Device type desktop.
Definition: SCAdEnvironment.h:30
@ deviceTypeTV
Device type tv.
Definition: SCAdEnvironment.h:33
@ deviceTypeMobile
Device type mobile.
Definition: SCAdEnvironment.h:24
NetworkReachability
enum NetworkReachability specifies the type of internet connection (must be set from outside)
Definition: SCAdEnvironment.h:37
@ reachabilityUnreachable
Reachability unreachable.
Definition: SCAdEnvironment.h:48
@ reachabilityNone
No reachability specified.
Definition: SCAdEnvironment.h:39
@ reachabilityWWAN
Reachability wwan.
Definition: SCAdEnvironment.h:42
@ reachabilityWIFI
Reachability wifi.
Definition: SCAdEnvironment.h:45
SCAdMacros * macros
Set/Get your macro settings here.
Definition: SCAdEnvironment.h:97
NSInteger desiredBitrate
Use a desiredBitrate, which overwrites bitrate calculation.
Definition: SCAdEnvironment.h:88
instancetype NS_UNAVAILABLE()
Not available here.
This class is used to specify VAST MAKROS.
Definition: SCAdMacros.h:15
Timeout values that can be changed.
Definition: SCAdEnvironment.h:52
NSInteger adSlotRequest
Definition: SCAdEnvironment.h:63
NSInteger adRequestChain
Definition: SCAdEnvironment.h:59
NSInteger vpaidReadiness
Definition: SCAdEnvironment.h:73
NSInteger videoRequest
Definition: SCAdEnvironment.h:66
NSInteger vpaidRequest
Definition: SCAdEnvironment.h:69
NSInteger adRequest
Definition: SCAdEnvironment.h:55
NSInteger nonlinearMaxDuration
Definition: SCAdEnvironment.h:78