PushTokenStore

interface PushTokenStore

Local persistence for the push token + subscribed topics. Platform impls push tokens here; topic subscribe/unsubscribe is local bookkeeping — remote registration against a backend is the app's job.

Inheritors

Properties

Link copied to clipboard
abstract val token: Flow<String?>

Functions

Link copied to clipboard
abstract fun currentToken(): String?
Link copied to clipboard
abstract fun setToken(token: String?)
Link copied to clipboard
abstract fun subscribe(topic: String)
Link copied to clipboard
abstract fun subscribedTopics(): Set<String>
Link copied to clipboard
abstract fun unsubscribe(topic: String)