SCAdSequencingController

@interface SCAdSequencingController <SCAdListener>

Controls the sequence and starting points of multiple videos played by SCAdController. This controller is not automatically started after initialization.

  • Set this if you want to get informed about the state of internal SCAdController that this sequencer uses. Usually not needed.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) id<SCAdListener> sdkDelegate;
  • This delegate needs to be implemented to synchronize your content player with this sequencer. Provides the sequencer with information about the content player state and controls.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) id<SCAdSequencingDelegate> sequencingDelegate;
  • Initializes SCAdSequencingController with a given sequence map and the anchor view to display the adverts sequence in.

    Declaration

    Objective-C

    - (id)initWithParentViewController:(id)parentViewController
                           sequenceMap:(id)sequenceMap
                                anchor:(SCAdContentView *)anchor;
  • returns if this sequence controller is currently running an advertisment clip or not

    Declaration

    Objective-C

    - (id)isAdRunning;
  • Current advert played by this controller can be resumed with this method. Has no effect if there is no advert running currently.

    Declaration

    Objective-C

    - (void)playCurrentAdvert;
  • Current advert can be paused with this method. Has no effect if there is no advert running currently.

    Declaration

    Objective-C

    - (void)pauseCurrentAdvert;
  • Starts this sequencers udpdate method. From this moment on ad urls from the sequence map will be processed and shown if content player has reached a position of an ad from sequence map.

    Declaration

    Objective-C

    - (void)start;
  • Pause the sequencer manually. Note: You need to call this method when you started the sequencer before and don’t want to use it anymore. E.g. when you leaving the parent view controller. Otherwise sequencer will continue to update itself and therefor cannot deallocate.

    Declaration

    Objective-C

    - (void)pause;