Files
amnezia-client/client/platforms/ios/iosPairingQrOverlayWindow.h
T
2026-05-08 22:36:53 +03:00

22 lines
852 B
C++

#ifndef IOS_PAIRING_QR_OVERLAY_WINDOW_H
#define IOS_PAIRING_QR_OVERLAY_WINDOW_H
#include <functional>
#include <string>
/**
* iOS-only: UIWindow + UIKit capture for API “send pairing” QR scan.
* UTF-8 scan payload is valid only for the duration of the callback.
*/
using AmneziaPairingQrScannedUtf8Handler = std::function<void(const char *)>;
using AmneziaPairingQrOverlayBackHandler = std::function<void()>;
void amneziaIosPairingQrOverlayPresent(AmneziaPairingQrScannedUtf8Handler onScanned, AmneziaPairingQrOverlayBackHandler onBack,
const std::string &titleUtf8, const std::string &subtitleUtf8);
void amneziaIosPairingQrOverlayDismiss();
bool amneziaIosPairingQrOverlayIsPresented();
void amneziaIosPairingQrOverlaySetTorchEnabled(bool on);
void amneziaIosPairingQrOverlayRestartCapture();
#endif