Booking
Booking ViewController
Once we initialized the SDK and authenticated the user, we can retrieve the MeetingDoctors UI using the following method:
errors
- Framework not initializated or user not authenticated
MeetingDoctorsError.illegalStateException(reason: .frameworkInitializationFailed))
- Installation not created
MeetingDoctorsError.illegalStateException(reason: .installationNotCreated))
- Feature not enabled for that company
MeetingDoctorsError.booking(reason: .notEnabled))
public static func bookingWebviewController() async throws -> UIViewController
Implementation example
So we can invoke the booking by adding the following example:
do {
let booking = try await MeetingDoctors.bookingWebviewController()
// Handle success
} catch {
// Handle error
}