initZoom method

  1. @override
Future<bool> initZoom(
  1. String jwt
)
override

Initializes the Zoom SDK with the provided JWT token.

Takes a jwt token that is required for authenticating with Zoom services. Returns a Future<bool> indicating whether the initialization was successful.

Throws and catches any exceptions that might occur during initialization, printing the error to the debug console and returning false.

Implementation

@override
Future<bool> initZoom(String jwt) async {
  try {
    // Invoke the native platform's 'initZoom' method with the JWT token
    await methodChannel.invokeMethod<bool>('initZoom', {'jwt': jwt});
    return true;
  } catch (e) {
    // Log any errors that occur during initialization
    debugPrint('Error initializing Zoom SDK: $e');
    return false;
  }
}