public async Task <string> ScanQRCode(string message, string closeButtonTitle = "Close", bool tryInverted = false) { // var activity = ViewHelper.CurrentActivity; var activity = ViewHelper.CurrentActivity; return(await ScanQrController.ScanQRCode(message, closeButtonTitle, activity, tryInverted)); }
public Task <bool> ScanQRCodeContinously(string message, QRCodeScanned onQrCodeScannedFunction, string closeButtonTitle = "Close", bool tryInverted = false) { var taskCompleteSource = new TaskCompletionSource <bool>(); ScanQrController.ScanContinuously(ViewHelper.CurrentActivity, message, closeButtonTitle, onQrCodeScannedFunction, taskCompleteSource, tryInverted); return(taskCompleteSource.Task); }
public async Task <string> ScanQRCode(string message, string closeButtonTitle = "Close", bool tryInverted = false) { return(await ScanQrController.ScanQrCode(message, closeButtonTitle, tryInverted)); }