getInstance
fun getInstance(credentialsProvider: CredentialsProvider, config: EventsConfig, context: Context, coroutineScope: CoroutineScope, tlConsumerUri: URI = TIDAL_PRODUCTION_TL_CONSUMER_URI): EventProducer
Used to get a Singleton instance of the EventProducer
Return
EventProducer instance.
Parameters
credentialsProvider
is an implementation of the CredentialsProvider from the tidal sdk auth module. It's responsible for providing credentials.
config
specifies basic attributes of the Event Producer contained within the EventsConfig.
context
is a context.
coroutineScope
used to launch coroutines responsible for adding events to local db and scheduling sending events to the TL consumer.
tlConsumerUri
identifies the TL Consumer ingest endpoint. TL Consumer is the backend part of the Event delivery platform. Default value is TIDAL production environment.