NordicAnalytics

@Singleton
class NordicAnalytics

This class is responsible for logging events to Firebase Analytics.

Use Hilt injection to get an instance of this class.

Properties

Link copied to clipboard

A flow that emits the current Analytics permission data.

Functions

Link copied to clipboard
fun logEvent(@Size(min = 1, max = 40) name: String, params: Bundle? = null)

Logs an event to Firebase Analytics, if the user has granted permission.

Link copied to clipboard
suspend fun setAnalyticsEnabled(isEnabled: Boolean)

Sets whether analytics collection is enabled or disabled.