StreamLayerDelegate
@objc
public protocol StreamLayerDelegate : AnyObject
StreamLayer SDK calls these methods on the host-app delegate, they are related to the global state of the host app
-
StreamLayer SDK notifies host app about accepted watch party invite and associated streamId, if any was associated with a given watch party. It is expected that host app will navigate to an appropriate streaming page and will call completion handler that will indicate to StreamLayer SDK that its appropriate to show prompt to join watch party now
Declaration
Swift
@objc func watchPartyInviteOpened(invite: SLRInviteData, completion: @escaping (_ cancel: Bool) -> Void)
Parameters
invite
contains information about the invite, specifically, stream id if any, user who sent the invite & watch party group
completion
invoke when navigation to appopriate page has been completed and streamlayer sdk overlay controller was added. Pass cancel: true in case you don’t want to initiate joining the watch party