29 void init(
const char* data,
const char* title =
nullptr,
const char* subtitle =
nullptr);
34 void setHint(
const char* hint) { customHint_ = hint; }
37 void render(
bool partial)
override;
39 const char*
getName()
const override {
return "QRCodeView"; }
43 const char* data_ =
nullptr;
44 const char*
title_ =
nullptr;
45 const char* subtitle_ =
nullptr;
46 const char* customHint_ =
nullptr;
49 int qrModuleCount_ = 0;
54 void calculateLayout();
75QRCodeView*
showQRCode(
const char* data,
const char* title =
nullptr,
76 const char* subtitle =
nullptr,
const char* hint =
nullptr);
const char * getFooterHint() const override
Returns footer hint text.
void setHint(const char *hint)
const char * getName() const override
InputResult onKey(char key) override
Handles key input by closing the QR view.
void init(const char *data, const char *title=nullptr, const char *subtitle=nullptr)
Initializes QR code content and layout state.
Centralized key-code constants for cdc_views.
QRCodeView * showQRCode(const char *data, const char *title=nullptr, const char *subtitle=nullptr, const char *hint=nullptr)
Shows a shared QR code view instance.