showScanQrPopup method
Bot API 6.4+ A method that shows a native popup for
scanning a QR code described by the params argument of
the type ScanQrPopupParams
. The Mini App will receive
the event qrTextReceived every time the scanner catches
a code with text data. If an optional callback parameter
was passed, the callback function will be called and the
text from the QR code will be passed as the first
argument. Returning true inside this callback function
causes the popup to be closed. Starting from Bot API
7.7, the Mini App will receive the scanQrPopupClosed
event if the user closes the native popup for scanning a
QR code.
Implementation
@override
void showScanQrPopup(String? infoTitle, [bool Function(String result)? callback]) {}