OOPulseSessionDelegate

Objective-C

@protocol OOPulseSessionDelegate <NSObject>

Swift

protocol OOPulseSessionDelegate : NSObjectProtocol

This delegate is used by OOPulseSession to communicate with your application.

It will inform your application of the proper time to perform certain actions, or when some events have occurred.

Actions

Events

  • The session has ended.

    No further delegate methods will be called.

    Declaration

    Objective-C

    - (void)sessionEnded;

    Swift

    func sessionEnded()
  • An illegal operation has occurred.

    Most likely protocol methods in OOPulseSession or OOPulseVideoAd were called when they were not expected.

    One way to recover from this would be to stop the current session, and continue playing the content.

    Declaration

    Objective-C

    - (void)illegalOperationOccurredWithError:(NSError *)error;

    Swift

    func illegalOperationOccurredWithError(_ error: (any Error)!)

    Parameters

    error

    The error that occurred.