SmartclipSDKiOS 3.0.0
Smartclip Advertisement Framework for iOS
SCAdListener.h
1//
2// SCAdListener.h
3// SmartclipSDKiOS
4//
5// Copyright © 2019 smartclip. All rights reserved.
6//
7#ifndef SCAdListener_h
8#define SCAdListener_h
9
11
13@protocol SCAdListener <NSObject>
14@optional
15
18
20- (void)contentVideoError:(NSError* _Nonnull )error;
21
24
26- (void)presentationSizeChangedTo:(CGSize)newSize;
27
29- (nullable SCAdEnvironment *)getEnvironmentVarsWith:(NSString* _Nonnull)adBreakType;
30@required
31
34- (void)onEventCallback:(SCAdEvent *_Nonnull )event;
35
37- (void)displayClickThroughAlert:(UIAlertController* _Nonnull )alert;
38
40- (void)visibilityChanged:(BOOL)visible;
41
43- (nullable SCElementSize*)getPlayerSize;
44
47@end
48
49#endif /* SCAdListener_h */
This class is used to specify certain environment variables like desired bitrate, deviceType and scre...
Definition: SCAdEnvironment.h:17
This class forms a wrapper around player events.
Definition: SCAdEvent.h:13
Class that describes the size of the video player and its view mode.
Definition: SCElementSize.h:15
Protocol that the video player uses to inform the listener about certain events.
Definition: SCAdListener.h:13
nullable SCElementSize * getViewportSize()
Give back the frame of the viewPort and the viewMode (normal or fullscreen)
void displayClickThroughAlert()
if you use customizableClickThroughAlert, add this function
void contentVideoFinished()
Called when the content video has finished.
nullable SCElementSize * getPlayerSize()
Give back the current player frame and viewMode (normal or fullscreen)