Bridge API
Use pallet_wallet_lite to develop the bridging layer to connect third-party apps.
The pallet_wallet_lite module acts as a bridging layer and is developed based on the thrio routing framework. Pallet-lite can be customized according to the framework used by third-party apps.
Pallet Wallet Lite API
Delegate interface and it's implementation relay on third-part APP
abstract class PalletDelegate {
/// Get language, format: language-country, such as: en-US
String getLang();
/// Get device id
String getDeviceId();
/// Get the current environment (pallet only has dev and prod environments)
String getEnv();
/// Set log proxy
ILogDelegate getLogDelegate();
/// Check if biometrics are supported
Future<bool> checkBiometrics();
/// Biometric Authentication Results
Future<bool> authenticateBiometric();
/// Track event reporting
void uploadEvent(String eventName, {Map<String, dynamic>? properties});
/// Check camera permissions
Future<bool> checkCameraPermission();
/// Scan pictures from photo albums and identify results
Future<String?> scanAlbum();
}Pallet provides interface for the third-part APP
Last updated