isPrivateStorageEnabledOrNot method

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

Checks if private storage is enabled in the SDK settings.

Implementation

@override
Future<bool> isPrivateStorageEnabledOrNot() async {
  bool? res;
  try {
    res = await mirrorFlyMethodChannel
        .invokeMethod<bool>('isPrivateStorageEnabled');
    LogMessage.d("isPrivateStorageEnabled", res);
    return res ?? false;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    return res ?? false;
  } on Exception catch (e) {
    LogMessage.d("Exception ", " $e");
    return res ?? false;
  }
}