getScanDocumentsUri method

  1. @override
Future getScanDocumentsUri(
  1. int page
)
override

Scans documents and returns URIs (Android only).

Returns null if the user cancelled.

Implementation

@override
Future<dynamic> getScanDocumentsUri(int page) async {
  try {
    return await methodChannel.invokeMethod<dynamic>(
      'getScanDocumentsUri',
      {'page': page},
    );
  } on PlatformException catch (e) {
    throw DocScanException(
      code: e.code,
      message: e.message ?? 'Failed to scan document URIs',
      details: e.details,
    );
  }
}