![]() |
SCTVOSSDK 23.0.0
Smartclip Advertisement Framework for tvOS
|
#import <SCAdSlotController.h>
Instance Methods | |
(void) | - startAdSlotWith: |
(void) | - stopAdSlot |
Call this function if you leave your view controller while video (or advertisement) playback is still active. | |
(void) | - skipAd |
Call this function when the user has pushed the skip button. | |
(void) | - cleanup |
Cleanup after usage! | |
(void) | - playerEventCallbackWith: |
Callback function for the video player that must be called for certain player events. | |
(void) | - getAdInfo: |
Call this function for a more detailed adInfo. | |
(void) | - getPublicAdSlot: |
Call this function for a more detailed adInfo. | |
(void) | - pausePlayback |
Call this function if you want to pause playback. | |
(void) | - startPlayback |
Call this function if you want to start playback. | |
(void) | - resumePlayback |
Call this function if you want to resume playback. | |
(void) | - getAdError: |
Call this function for a more detailed error description. | |
(void) | - loadAdSuccess |
Call this function if the loading of the adTag succeeded. | |
(void) | - loadAdFailure |
Call this function if the loading of the adTag failed. | |
(void) | - unmutePlayer |
Call this function to unmute the adPlayer. | |
(void) | - mutePlayer |
Call this function to mute the adPlayer. | |
(BOOL) | - isMuted |
Call this function to check if the player currently is muted. | |
![]() | |
(void) | - playerEventCallbackWith: |
Inform adSlotController about the player state. | |
(void) | - getAdInfo: |
Get the current adInfo object. | |
(void) | - getAdError: |
Get the last adError object. | |
(void) | - getPublicAdSlot: |
Get the publicAdSlot object. | |
(void) | - loadAdSuccess |
Inform the adSlotController about a successfull ad video load. | |
(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) | - resize |
Call when presentationSize of the player changes. | |
(void) | - contentVideoFinished |
Call when contentVideo has finished. | |
(void) | - contentVideoError: |
Call when contentVideo has an error. | |
Properties | |
id< SCAdListener > _Nullable | delegate |
Register your SCAdListener here as the delegate of the SCAdSlotController. | |
The SCAdSlotController initializes and controls a single AdSlot. A valid AdSlot must be inialized from the SCAdSessionController.
- (void) loadAdFailure |
Call this function if the loading of the adTag failed.
Reimplemented from <SCPlayerEventListener>.
- (void) loadAdSuccess |
Call this function if the loading of the adTag succeeded.
Reimplemented from <SCPlayerEventListener>.
- (void) playerEventCallbackWith: | (SCAdPlayerEventType) | playerEventType |
Callback function for the video player that must be called for certain player events.
Reimplemented from <SCPlayerEventListener>.
- (void) startAdSlotWith: | (nonnull SCAdConfiguration *) | configuration |
You start the playback of an ad slot with this function
- (void) stopAdSlot |
Call this function if you leave your view controller while video (or advertisement) playback is still active.
Reimplemented from <SCPlayerEventListener>.