addCallMediaListener(handler:)

Event fired when a call is asking for media to send

func addCallMediaListener(handler: @escaping @Sendable (InitiatedSession, Bool, Bool) -> Void) -> Int32

Parameters

handler

takes three arguments, the call Session, a boolean indicating if audio is desired, and a boolean indicating if video is desired

Return Value

token for use with removeEventListener