forceOldApi static method

Future<void> forceOldApi()

Forces the plugin to use the old API for accessing the device's media library on Android 10 and above.

This method should only be used as a last resort if the new API is not functioning correctly on certain devices. Using this method may have negative effects on performance and stability, and is not recommended unless absolutely necessary. If you are planning to publish your app on Google Play Store, it is not recommended to use this API.

This method is asynchronous and returns a Future that completes when the operation is finished.

Implementation

static Future<void> forceOldApi() => plugin.forceOldApi();