SCAdSequencerDelegate

@protocol SCAdSequencerDelegate <NSObject>

SCAdSequencerDelegate: the sequencer protocol that you need to implemented to be able to react to sequencer state changes, get events from the sdk and to reinsert overscrubbed adSlots.

  • Called when the sdk has been reported to be ready for use

    Declaration

    Objective-C

    - (void)sequencerReady;
  • Called when the content video was scrubbed

    • return value NSArray* : give back the SCAdSlot objects that you want to reinsert with an actualized relative time (bigger than the currentRelativePosition)

    Declaration

    Objective-C

    - (nonnull NSArray<SCAdSlot *> *)
                   userDidScrub:(nonnull NSArray<SCAdSlot *> *)removedAdSlots
        currentRelativePosition:(id)currentRelativePosition;
  • Called when the content video has finished

    Declaration

    Objective-C

    - (void)contentVideoFinished;
  • Called when the content video fails for any reason

    Declaration

    Objective-C

    - (void)contentVideoError:(nonnull NSError *)error;
  • Called on for every ScAdInfo type change

    Declaration

    Objective-C

    - (void)onEventCallbackWithEvent:(nonnull SCAdEvent *)event;
  • Called when sequencer has finished its playback sequence

    Declaration

    Objective-C

    - (void)sequencerFinished;
  • Called when the AVPlayer actually starts video playback

    Declaration

    Objective-C

    - (void)adStartsPlaybackWith:(nonnull NSURL *)url;
  • Give back the current player frame and viewMode (normal or fullscreen)

    Declaration

    Objective-C

    - (nullable SCElementSize *)getPlayerSize;
  • Give back the frame of the viewPort and the viewMode (normal or fullscreen)

    Declaration

    Objective-C

    - (nullable SCElementSize *)getViewportSize;