FeedChannelContext

@objc(SBDFeedChannelContext)
public final class FeedChannelContext : NSObject

Channel context

Since

3.1.0
  • Event source

    Declaration

    Swift

    @objc
    public internal(set) var source: CollectionEventSource { get }
  • The EventDetail of current context. Includes detailed information which are provided as function parameters in FeedChannelDelegate.

    Since

    4.21.0

    Declaration

    Swift

    @objc
    public internal(set) var eventDetail: EventDetail { get }
  • Initializes with the channel source.

    Declaration

    Swift

    public init(source: CollectionEventSource)

    Parameters

    source

    Channel source.

  • Initializes with the channel source.

    Declaration

    Swift

    public init(source: CollectionEventSource, eventDetail: EventDetail)

    Parameters

    source

    Channel source.

    eventDetail

    The Event Detail object for the event.

  • Checks whether the context is from an event or not.

    Declaration

    Swift

    @objc
    public var fromEvent: Bool { get }

    Return Value

    true if the context is from an event.