FcmClientHelper

class FcmClientHelper

Main interaction class for the FCM client

Author

Umang Chamaria

Types

Companion
Link copied to clipboard
object Companion

Functions

addListener
Link copied to clipboard
fun addListener(listener: FirebaseMessageListener)
Register a callback for FCM events.
initialise
Link copied to clipboard
fun initialise(logLevel: Logger.LogLevel = Logger.LogLevel.ERROR, retryInterval: Long = 30)
Initialize the FCM client.
removeListener
Link copied to clipboard
fun removeListener(listener: FirebaseMessageListener)
Remove of a registered callback for FCM events
subscribeToTopics
Link copied to clipboard
fun subscribeToTopics(topics: List<String>)
Subscribe to the given list of topics
unSubscribeTopic
Link copied to clipboard
fun unSubscribeTopic(topics: List<String>)
To un-subscribe from messaging topics.