VidyoViewController
open class VidyoViewController : UIViewController, UIGestureRecognizerDelegate
Starts a new vidyo call and provides the in-call UI, including call-control buttons bar, sharing and PiP mode.
The in-call UI is configured using a XIB file, and allows styling of the button bar: call end, volume control, audio/video mute and front/rear camera switch.
-
Completion block to be called when a call ends (or fails)
Declaration
Swift
public typealias CallEnd = () -> Void
-
The designated initializer for joining a Vidyo call as guest. This methid instantiates a new VidyoViewController and returns it.
Declaration
Parameters
guestLinkthe
GuestLinkthat was clicked by the user.onCallEnda block to perform when the call ends (or fails)
-
Creates a new
VidyoViewControllerasynchronously, after validating the appId and call code.Declaration
Swift
public static func createAsync(appId: String, callCode: String, onCallEnd: CallEnd?, completion: ((_ error: Error?, _ controller: VidyoViewController?) -> ())?)Parameters
appIdthe unique application Id, required for accessing the Vidyo API
callCodea unique String to identify the resource / call.
onCallEnda block to perform when the call ends (or fails)
completiona block returning the initialized contorller and an
Error, if occurred.
VidyoViewController Class Reference