getAudiobooksPath method

  1. @override
Future<String?> getAudiobooksPath()
override

Implementation

@override
Future<String?> getAudiobooksPath() async {
  try {
    if (!Platform.isAndroid) throw _unsupportedPlatformException();
    return await methodChannel.invokeMethod<String>('getAudiobooksPath');
  } on PlatformException catch (e) {
    debugPrint('Error getting audiobooks path: ${e.message}');
    return null;
  }
}