ReceiveTargetStore

class ReceiveTargetStore(context: Context)

The active (network, unshielded address) the background receive poll should check.

Written by MidnightSdkProvider whenever it builds / switches the SDK (it has both the config's network and the wallet address); read by ReceivePollWorker, which runs when the live SDK may be gone (session locked / process backgrounded) and so can't ask it.

Public data (a network name + a Bech32m receive address) — plain prefs, no secret.

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Target(val network: MidnightNetwork, val address: String)

Functions

Link copied to clipboard
fun setTarget(network: MidnightNetwork, address: String)

Record the wallet's current network + receive address as the poll target.

Link copied to clipboard

The current target, or null if no wallet has been set up on this device.