Skip to content

Enable or disable clients

Mohamed Hamdan edited this page Nov 6, 2018 · 1 revision

@AnalyticsClient

This annotation make you able to enable or disable any of supported clients by add this annotation to @AnalyticsConfiguration.

@AnalyticsConfiguration(
        AnalyticsClient(type = AnalyticsTypes.FIREBASE, enabled=false),
        AnalyticsClient(type = AnalyticsTypes.FABRIC),
        AnalyticsClient(key = "mixpanelToken", type = AnalyticsTypes.MIXPANEL)
)
class MyApplication : Application()

Now you enabled fabric and mixpanel and you supported firebase but it still disabled, you can enable it any time you want.

You can support one or more analytical tools like this

@AnalyticsConfiguration(
        AnalyticsClient(type = AnalyticsTypes.FABRIC)
)
class MyApplication : Application()
Clone this wiki locally