PlanetKitOutboundDataSessionDelegate

@objc
public protocol PlanetKitOutboundDataSessionDelegate

A delegate protocol for handling outbound data session events in PlanetKit.

  • Notifies the delegate that the outbound data session has been closed.

    Declaration

    Swift

    func didClose(_ session: PlanetKitOutboundDataSession, reason: PlanetKitDataSessionClosedReason)

    Parameters

    session

    The outbound data session that was closed.

    reason

    The reason for closing the session.

  • Notifies the delegate that the queued data in the outbound data session has exceeded the maximum limit.

    Declaration

    Swift

    func didTooLongQueuedData(_ session: PlanetKitOutboundDataSession, enabled: Bool)

    Parameters

    session

    The outbound data session that has too long queued data.

    enabled

    true indicates that the application should stop or reduce the sending bitrate. false suggests that the network condition is improving, allowing the application to send more data.