SmartclipSDKiOS 3.0.0
Smartclip Advertisement Framework for iOS
SCAdFacadeDelegate.h
1//
2// SCAdFacadeDelegate.h
3// SmartclipSDKiOS
4//
5// Copyright © 2018 smartclip. All rights reserved.
6//
7#import <AVKit/AVKit.h>
8#import <SmartclipSDKiOS/SCAdSlotController.h>
9#import <SmartclipSDKiOS/SCPlayerEventListener.h>
10
11#ifndef SCAdFacadeDelegate_h
12#define SCAdFacadeDelegate_h
13
15
17@protocol SCAdFacadeDelegate <NSObject>
18@optional
20- (BOOL)loadAdWithCaptions:(NSDictionary* _Nonnull)loadDict disableSeeking:(BOOL)disableSeeking completion:(nullable SCEmptyCompletionBlock)completion;
21
22@required
24- (BOOL)loadAdWithUrlString:(NSString* _Nonnull)urlString disableSeeking:(BOOL)disableSeeking completion:(nullable SCEmptyCompletionBlock)completion;
26- (void)start;
28- (void)pause;
30- (void)resume;
32- (BOOL)isPaused;
34- (void)mutePlayer;
36- (void)unmutePlayer;
38- (BOOL)isMuted;
40- (void)seek:(NSInteger)offset;
42- (double)getCurrentTime;
44- (double)getDuration;
46- (void)setVolume:(CGFloat)volume;
48- (CGFloat)getVolume;
50- (void)lockContent;
54- (BOOL)releaseContent;
56- (nullable NSString*)getError;
57@end
58
59#endif /* SCAdFacadeDelegate_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
Description of the contentVideo and its current playback offset.
Definition: SCContentSource.h:14
Class that describes the size of the video player and its view mode.
Definition: SCElementSize.h:15
The SCAdFacadeDelegate protocol needs to be implemented by the video player implementation it receive...
Definition: SCAdFacadeDelegate.h:17
BOOL isPaused()
The player is being asked if it is paused.
CGFloat getVolume()
The player should give back the current volume (currently unused)
void mutePlayer()
The player should mute sound.
SCContentSource *_Nullable getCurrentContentSource()
The player should give back its current content source.
void start()
The player should start its playback.
void unmutePlayer()
The player should unmute sound.
void lockContent()
The player should lock the current content source.
nullable NSString * getError()
Give back an error, if a playback error occured.
double getCurrentTime()
The player must give back its current playback position.
double getDuration()
The player must give back the duration of its current video.
BOOL isMuted()
The player is being asked if it is muted.
BOOL releaseContent()
The player should release its source to the content source (after an adSlot is finished)
void pause()
The player should pause its playback.
void resume()
The player should resume its playback.