canGetScannedResults method
Checks if it is ok to invoke getScannedResults or onScannedResultsAvailable.
Necesearry platform requirements, like permissions dependent services, configuration, etc are checked.
Set askPermissions
flag to ask user for necessary permissions.
Implementation
Future<CanGetScannedResults> canGetScannedResults(
{bool askPermissions = true}) async {
final canCode = await _channel.invokeMethod<int>("canGetScannedResults", {
"askPermissions": askPermissions,
});
return _deserializeCanGetScannedResults(canCode);
}