Documentation Index
Fetch the complete documentation index at: https://docs.privacyboost.io/llms.txt
Use this file to discover all available pages before exploring further.
Android SDK
The Privacy Boost Android SDK is a native Kotlin library that wraps the Rust core via UniFFI. It exposes idiomatic Kotlin APIs (suspend functions, sealed classes, data classes) for shielding, unshielding, and private transfers.
Features
- Native Kotlin library — no JavaScript bridge, no WebView
suspendfunctions integrated with Kotlin coroutinesSdkExceptionsealed class — exhaustivewhenmatching on error variants- Drop-in defaults for Android Keystore, CredentialManager Passkey (Android 14+), and BiometricPrompt
- Wallet-agnostic — implement
WalletDelegateonce for any signer - Identical core to the TypeScript / iOS / React Native SDKs (same proofs, same network protocol)
Installation
Add the Maven artifact to yourbuild.gradle.kts. See the installation guide for full details.
Quick Example
Core Operations
| Method | Purpose |
|---|---|
sdk.shield(tokenAddress, amount) | Deposit tokens into the shielded pool |
sdk.unshield(tokenAddress, amount, recipient) | Withdraw to a public address |
sdk.send(tokenAddress, amount, recipientPrivacyAddress) | Private transfer |
sdk.getBalance(tokenAddress) | Single-token shielded + wallet balance |
sdk.getAllBalances() | All tracked balances |
sdk.getTransactionHistory(...) | Paginated history |
sdk.resolveIdentity(identifier) | Look up a privacy address |
suspend functions — call them from a coroutine scope (lifecycleScope, viewModelScope, etc.).
Documentation
Getting Started
Guides
- Deposits
- Withdrawals
- Transfers
- Balances
- Transactions
- Multi-Chain
- Wallet Integration
- Session Storage
- Error Handling
Advanced
Reference
Requirements
- Android API 26+ (Android 8.0 Oreo)
- API 34+ (Android 14) required for Passkey defaults
- Kotlin 1.9+
- AndroidX
Related
- Multi-Chain Concepts — architecture overview
- Authentication Concepts — auth flow details
- Quickstart — 5-minute integration