mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
22 lines
852 B
C++
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
|