SCTVOSSDK 23.0.0
Smartclip Advertisement Framework for tvOS
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
SCAdSlotController Class Reference

#import <SCAdSlotController.h>

Inheritance diagram for SCAdSlotController:
<SCPlayerEventListener>

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.
 
- Instance Methods inherited from <SCPlayerEventListener>
(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.
 

Detailed Description

The SCAdSlotController initializes and controls a single AdSlot. A valid AdSlot must be inialized from the SCAdSessionController.

Method Documentation

◆ loadAdFailure

- (void) loadAdFailure

Call this function if the loading of the adTag failed.

Reimplemented from <SCPlayerEventListener>.

◆ loadAdSuccess

- (void) loadAdSuccess

Call this function if the loading of the adTag succeeded.

Reimplemented from <SCPlayerEventListener>.

◆ playerEventCallbackWith:

- (void) playerEventCallbackWith: (SCAdPlayerEventType)  playerEventType

Callback function for the video player that must be called for certain player events.

Reimplemented from <SCPlayerEventListener>.

◆ startAdSlotWith:

- (void) startAdSlotWith: (nonnull SCAdConfiguration *)  configuration

You start the playback of an ad slot with this function

◆ stopAdSlot

- (void) stopAdSlot

Call this function if you leave your view controller while video (or advertisement) playback is still active.

Reimplemented from <SCPlayerEventListener>.


The documentation for this class was generated from the following file: