EventPlayback

enum EventPlayback
extension EventPlayback : CaseIterable, Equatable, Hashable

When events are fired, their payloads are captured. When an event type is listened to, previous events can be replayed such that if data recently came in before the listener was added. In such cases the code adding the listener can opt to replay previous events.

  • all

    Playback all previous events upon adding a listener

    Declaration

    Swift

    case all
  • Playback all the previously unsuccessful payloads

    Declaration

    Swift

    case failures
  • Playback only the last event stored upon adding a listener

    Declaration

    Swift

    case last
  • Playback only the last successful event

    Declaration

    Swift

    case lastSuccessful
  • Playback no events when adding a listener

    Declaration

    Swift

    case none
  • Playback all the previously successful payloads

    Declaration

    Swift

    case successful