OOPulseSessionDelegate

@protocol OOPulseSessionDelegate <NSObject>

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.

  • 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: Error!)

    Parameters

    error

    The error that occurred.