isAvailable method

  1. @override
Future<bool> isAvailable()
override

Check if the SDK was initialized and is available.

Returns true if the SDK is initialized and ready to use, false otherwise.

Implementation

@override
Future<bool> isAvailable() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('isAvailable');
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Failed to check availability: ${e.message}');
    return false;
  }
}