2026-06-15 10:19:24 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace PalladiumWallet.App.Services;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-06-16 14:40:06 +02:00
|
|
|
/// Seam for platform-specific services (Android/desktop).
|
|
|
|
|
/// The Android head sets the delegates in OnCreate; desktop leaves them null.
|
2026-06-15 10:19:24 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public static class PlatformServices
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2026-06-16 14:40:06 +02:00
|
|
|
/// Opens the native QR scanner and returns the raw code text,
|
|
|
|
|
/// or null if the user cancels or the scanner is unavailable.
|
2026-06-15 10:19:24 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public static Func<Task<string?>>? ScanQrAsync { get; set; }
|
|
|
|
|
}
|