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
serverThe server to obtain credentials from
idThe user id to authenticate with
passwordThe password to authenticate with
completionThe 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
serverThe server the meeting is on
meetingUUIDUnique Identifier of the meeting
completionThe 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
serverThe server the meeting is on
meetingUUIDUnique Identifier of the meeting
tokenA JWT authentication token. If nil, we will request an anonymous MJWT
completionThe callback called after initialization containing an MJWT token to join meeting with
Return Value
Bool if initializing was successful or not