isEnabled method

Future<IsEnabledResult> isEnabled()

Query whether analytics is enabled.

This flag controls whether the analysis server sends any analytics data to the cloud. If disabled, the analysis server does not send any analytics data, and any data sent to it by clients (from sendEvent and sendTiming) will be ignored.

The value of this flag can be changed by other tools outside of the analysis server's process. When you query the flag, you get the value of the flag at a given moment. Clients should not use the value returned to decide whether or not to send the sendEvent and sendTiming requests. Those requests should be used unconditionally and server will determine whether or not it is appropriate to forward the information to the cloud at the time each request is received.

Implementation

Future<IsEnabledResult> isEnabled() =>
    _call('analytics.isEnabled').then(IsEnabledResult.parse);