SCTVOSSDK 23.0.0
Smartclip Advertisement Framework for tvOS
Loading...
Searching...
No Matches
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
42- (void)contentVideoFinished;
44- (void)contentVideoError:(NSError*)error;
45@end
46
47NS_ASSUME_NONNULL_END
Definition: SCAdError.h:16
Definition: SCAdInfo.h:16
Definition: SCPublicAdSlot.h:16