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

    Swift

    public static func create(guestLink: GuestLink, onCallEnd: CallEnd?) -> VidyoViewController

    Parameters

    guestLink

    the GuestLink that was clicked by the user.

    onCallEnd

    a block to perform when the call ends (or fails)

  • Creates a new VidyoViewController asynchronously, 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

    appId

    the unique application Id, required for accessing the Vidyo API

    callCode

    a unique String to identify the resource / call.

    onCallEnd

    a block to perform when the call ends (or fails)

    completion

    a block returning the initialized contorller and an Error, if occurred.