PlanetKitCallDelegate

@objc
public protocol PlanetKitCallDelegate

The delegate protocol for the PlanetKit call events.

Responder Preparation

Network Status

  • Called when the network is unavailable.

    Declaration

    Swift

    @objc
    optional func networkDidUnavailable(_ call: PlanetKitCall, isPeer: Bool, willDisconnected seconds: TimeInterval)

    Parameters

    call

    The call object.

    isPeer

    true if the peer’s network is unavailable. false if the local user’s network is unavailable.

    willDisconnected

    The remaining time until the call is disconnected.

  • Called when the network is reavailable.

    Declaration

    Swift

    @objc
    optional func networkDidReavailable(_ call: PlanetKitCall, isPeer: Bool)

    Parameters

    call

    The call object.

    isPeer

    true if the peer’s network was unavailable. false if the local user’s network was unavailable.

Video Communication

Short Data

  • Called when the short data is received.

    Declaration

    Swift

    @objc
    optional func didReceiveShortData(_ call: PlanetKitCall, dataType: String, data: Data)

    Parameters

    call

    The call object.

    dataType

    The type of the short data.

    data

    The short data.

Mute

Hold/Unhold

Screen Share

Data Session

Screen Share - Broadcast

Shared Contents

  • Called when the peer sets shared contents.

    Declaration

    Swift

    @objc
    optional func peerDidSetSharedContents(_ call: PlanetKitCall, data: Data, elapsed seconds: TimeInterval)

    Parameters

    call

    The call object.

    data

    The shared contents data.

    elapsed

    The elapsed time since the shared contents were set.

  • Called when the peer unsets shared contents.

    Declaration

    Swift

    @objc
    optional func peerDidUnsetSharedContents(_ call: PlanetKitCall)
  • Called when the peer sets exclusively shared contents.

    Declaration

    Swift

    @objc
    optional func peerDidSetExclusivelySharedContents(_ call: PlanetKitCall, data: Data, elapsed seconds: TimeInterval)

    Parameters

    call

    The call object.

    data

    The exclusively shared contents data.

    elapsed

    The elapsed time since the exclusively shared contents were set.

  • Called when the peer unsets exclusively shared contents.

    Declaration

    Swift

    @objc
    optional func peerDidUnsetExclusivelySharedContents(_ call: PlanetKitCall)

Record On Cloud