SCTVOSSDK 23.0.0
Smartclip Advertisement Framework for tvOS
SCPlayerEventListener.h
1//
2// SCPlayerEventListener.h
3// SCTVOSSDK
4//
5// Copyright © 2019 smartclip. All rights reserved.
6//
7
8#import <Foundation/Foundation.h>
9#import <SCTVOSSDK/SCAdPlayerEvent.h>
10
11NS_ASSUME_NONNULL_BEGIN
13
15typedef void (^SCPublicAdSlotCompletionBlock)(SCPublicAdSlot* _Nullable adInfo);
17typedef void (^SCAdErrorCompletionBlock)(SCAdError* _Nullable adError);
19typedef void (^SCAdInfoCompletionBlock)(SCAdInfo* _Nullable adInfo);
20
21
23@protocol SCPlayerEventListener <NSObject>
25- (void)playerEventCallbackWith:(SCAdPlayerEventType)playerEventType;
27- (void)getAdInfo:(SCAdInfoCompletionBlock _Nonnull )completion;
29- (void)getAdError:(SCAdErrorCompletionBlock _Nonnull )completion;
31- (void)getPublicAdSlot:(SCPublicAdSlotCompletionBlock _Nonnull )completion;
33- (void)loadAdSuccess;
35- (void)loadAdFailure;
37- (void)stopAdSlot;
39- (void)resize;
40@optional
44- (void)contentVideoError:(NSError*)error;
45@end
46
47NS_ASSUME_NONNULL_END
Definition: SCAdError.h:16
Definition: SCAdInfo.h:16
Definition: SCPublicAdSlot.h:16
Use this protocol to inform the adSlotController about player related events.
Definition: SCPlayerEventListener.h:23
void loadAdFailure()
Inform the adSlotController about an unsuccessfull ad video load.
void stopAdSlot()
Request stopping the current ad slot (if you leave your viewController during ad playback for example...
void loadAdSuccess()
Inform the adSlotController about a successfull ad video load.
void resize()
Call when presentationSize of the player changes.
void contentVideoFinished()
Call when contentVideo has finished.