SharePlayDelegate

public protocol SharePlayDelegate : AnyObject

Undocumented

  • Called on receiving a new SharePlay invite or when a new group playblack starts. Received SharePlayAsset must be used for playback.

    Declaration

    Swift

    func didReceiveAssetForSharePlay(asset: SharePlayAsset?)

    Parameters

    asset
  • Called when the SharePlaySession ends. Use this method to close the Player or to close the activity related UI.

    Declaration

    Swift

    func didEndSharePlaySession()
  • Called if there is any error while activating a SharePlay.

    Declaration

    Swift

    func didFailWith(error: FLError)
  • Called when an user joines or leaves FaceTime call. This delegate can be used to update the UI as per FaceTime state. Example: In case we need to update an UI to indicate that user can SharePlay some media.

    Declaration

    Swift

    func didUpdateSharePlay(eligibility: Bool)

    Parameters

    eligibility

    A boolean value indicating FaceTime connectivity state.