Protocols

The following protocols are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol SCAdViewDelegate <NSObject>
    @required
    - (void)onSkipAd;
    - (void)onClickThrough;
    - (void)toggleMute;
    - (void)replayAdvertisement;
    @end
  • The SCAdFacadeDelegate protocol needs to be implemented by the video player implementation it receives it´s commands and delivers information through this protocol

    See more

    Declaration

    Objective-C

    @protocol SCAdFacadeDelegate <NSObject>
  • Protocol that the video player uses to inform the listener about certain events.

    See more

    Declaration

    Objective-C

    @protocol SCAdListener <NSObject>
  • Protocol that you implement in your view controller to get informed about SCAdSequencer events

    See more

    Declaration

    Objective-C

    @protocol SCAdSequencerDelegate <NSObject>
  • The SCAdSessionStateListener is a protocol that is being informed of the overall state of the sdk, before SessionStateRead is is reached, the sdk can´t be used

    See more

    Declaration

    Objective-C

    @protocol SCAdSessionStateListener <NSObject>
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol SCOmidEventLoggingDelegate <NSObject>
    - (void)logEventString:(NSString*)eventString;
    @end
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol SCPlayerEventListener <NSObject>
    - (void)playerEventCallbackWith:(SCAdPlayerEventType)playerEventType;
    - (void)getAdInfo:(SCAdInfoCompletionBlock)completion;
    - (void)getAdError:(SCAdErrorCompletionBlock)completion;
    - (void)getPublicAdSlot:(SCPublicAdSlotCompletionBlock)completion;
    - (void)onClickThrough;
    - (void)onBufferEmpty;
    - (void)onBufferRefilled;
    - (void)loadAdSuccess;
    - (void)loadAdFailure;
    @end