SmartclipSDKiOS 3.0.0
Smartclip Advertisement Framework for iOS
Loading...
Searching...
No Matches
SCPlayerEventListener.h
1//
2// SCPlayerEventListener.h
3// SmartclipSDKiOS
4//
5// Copyright © 2019 smartclip. All rights reserved.
6//
7
8#import <Foundation/Foundation.h>
9
10NS_ASSUME_NONNULL_BEGIN
12
14typedef void (^SCPublicAdSlotCompletionBlock)(SCPublicAdSlot* _Nullable adInfo);
16typedef void (^SCAdErrorCompletionBlock)(SCAdError* _Nullable adError);
18typedef void (^SCAdInfoCompletionBlock)(SCAdInfo* _Nullable adInfo);
19
20
22@protocol SCPlayerEventListener <NSObject>
24- (void)playerEventCallbackWith:(SCAdPlayerEventType)playerEventType;
26- (void)getAdInfo:(SCAdInfoCompletionBlock _Nonnull )completion __deprecated_msg("This function must no longer be implemented by the listener");
28- (void)getAdError:(SCAdErrorCompletionBlock _Nonnull )completion __deprecated_msg("This function must no longer be implemented by the listener");
30- (void)getPublicAdSlot:(SCPublicAdSlotCompletionBlock _Nonnull )completion __deprecated_msg("This function must no longer be implemented by the listener");
32- (void)onClickThrough __deprecated_msg("This function must no longer be implemented by the listener");
34- (void)onBufferEmpty;
36- (void)onBufferRefilled;
38- (void)loadAdSuccess;
40- (void)loadAdFailure;
42- (void)stopAdSlot __deprecated_msg("This function must no longer be implemented by the listener");
44- (void)resize;
45
46@optional
48- (void)contentVideoFinished;
50- (void)contentVideoError:(NSError*)error;
51@end
52
53NS_ASSUME_NONNULL_END
This class holds public error information, if an adError was detected.
Definition: SCAdError.h:14
This class holds the advertisement information.
Definition: SCAdInfo.h:14
This class holds public progress information about the adSlot.
Definition: SCPublicAdSlot.h:15