VisionableAPI

public class VisionableAPI
  • The shared instance of the VisionableAPI

    Declaration

    Swift

    public static let shared: VisionableAPI
  • Takes a userid and password, then obtains a JWT

    Declaration

    Swift

    public func authenticate(server: String, id: String, password: String, completion: @escaping (String) -> ())

    Parameters

    server

    The server to obtain credentials from

    id

    The user id to authenticate with

    password

    The password to authenticate with

    completion

    The callback called after authentication containing a JWT for the userid specified

  • Initializes the meeting

    Declaration

    Swift

    public func initializeMeeting(server: String, meetingUUID: String, completion: @escaping (Bool, String) -> ())

    Parameters

    server

    The server the meeting is on

    meetingUUID

    Unique Identifier of the meeting

    completion

    The callback called after initialization

    Return Value

    Bool if initializing was successful or not

  • Initializes the meeting and receives an anonymous MJWT token back

    Declaration

    Swift

    public func initializeMeetingWithToken(server: String, meetingUUID: String, token: String?, completion: @escaping (Bool, String) -> ())

    Parameters

    server

    The server the meeting is on

    meetingUUID

    Unique Identifier of the meeting

    token

    A JWT authentication token. If nil, we will request an anonymous MJWT

    completion

    The callback called after initialization containing an MJWT token to join meeting with

    Return Value

    Bool if initializing was successful or not