SCTVOSSDK 23.0.0
Smartclip Advertisement Framework for tvOS
Loading...
Searching...
No Matches
SCAdSlotController.h
1//
2// SCAdSlotController.h
3// SCTVOSSDK
4//
5// Copyright © 2018 smartclip. All rights reserved.
6//
7#import <Foundation/Foundation.h>
8#import <SCTVOSSDK/SCAdPlayerEvent.h>
9#import <SCTVOSSDK/SCPlayerEventListener.h>
10#import <SCTVOSSDK/SCAdListener.h>
11
13
15typedef void (^SCAdInfoCompletionBlock)(SCAdInfo* _Nullable adInfo);
17typedef void (^SCPublicAdSlotCompletionBlock)(SCPublicAdSlot* _Nullable publicAdSlot);
19typedef void (^SCAdErrorCompletionBlock)(SCAdError* _Nullable adError);
21typedef void (^SCStringResultCompletionBlock)(NSString* _Nullable result);
22
24typedef void (^SCEmptyCompletionBlock)(void);
25
31
33@property (nonatomic, weak) id<SCAdListener> _Nullable delegate;
34
39- (void)startAdSlotWith:(nonnull SCAdConfiguration*)configuration;
40
42- (void)stopAdSlot;
43
45- (void)skipAd;
46
48- (void)cleanup;
49
51- (void)playerEventCallbackWith:(SCAdPlayerEventType)playerEventType;
52
54- (void)getAdInfo:(nonnull SCAdInfoCompletionBlock)completion;
55
57- (void)getPublicAdSlot:(nonnull SCPublicAdSlotCompletionBlock)completion;
58
60- (void)pausePlayback;
61
63- (void)startPlayback;
64
66- (void)resumePlayback;
67
69- (void)getAdError:(nonnull SCAdErrorCompletionBlock)completion;
70
72- (void)loadAdSuccess;
73
75- (void)loadAdFailure;
76
78- (void)unmutePlayer;
79
81- (void)mutePlayer;
82
84- (BOOL)isMuted;
85@end
Definition: SCAdConfiguration.h:19
Definition: SCAdError.h:16
Definition: SCAdEvent.h:15
Definition: SCAdInfo.h:16
Definition: SCAdSlotController.h:30
void loadAdFailure()
Call this function if the loading of the adTag failed.
void unmutePlayer()
Call this function to unmute the adPlayer.
void startPlayback()
Call this function if you want to start playback.
id< SCAdListener > _Nullable delegate
Register your SCAdListener here as the delegate of the SCAdSlotController.
Definition: SCAdSlotController.h:33
void loadAdSuccess()
Call this function if the loading of the adTag succeeded.
BOOL isMuted()
Call this function to check if the player currently is muted.
void stopAdSlot()
Call this function if you leave your view controller while video (or advertisement) playback is still...
void cleanup()
Cleanup after usage!
void pausePlayback()
Call this function if you want to pause playback.
void resumePlayback()
Call this function if you want to resume playback.
void skipAd()
Call this function when the user has pushed the skip button.
void mutePlayer()
Call this function to mute the adPlayer.
Definition: SCElementSize.h:14
Definition: SCPublicAdSlot.h:16
Use this protocol to inform the adSlotController about player related events.
Definition: SCPlayerEventListener.h:23