AnalyticsDomain class
The analytics domain contains APIs related to reporting analytics.
This API allows clients to expose a UI option to enable and disable the
analysis server's reporting of analytics. This value is shared with other
tools and can change outside of this API; because of this, clients should
use the analysis server's flag as the system of record. Clients can choose
to send in additional analytics (see sendEvent
and sendTiming
) if they
so choose. Dart command-line tools provide a disclaimer similar to: Dart SDK tools anonymously report feature usage statistics and basic crash reports to help improve Dart tools over time. See Google's privacy policy: https://www.google.com/intl/en/policies/privacy/.
The analysis server will send it's own analytics data (for example, operations performed, operating system type, SDK version). No data (from the analysis server or from clients) will be sent if analytics is disabled.
- Inheritance
- Annotations
Constructors
- AnalyticsDomain(AnalysisServer server)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server → AnalysisServer
-
finalinherited
Methods
-
enable(
bool value) → Future -
Enable or disable the sending of analytics data. Note that there are other
ways for users to change this setting, so clients cannot assume that they
have complete control over this setting. In particular, there is no
guarantee that the result returned by the
isEnabled
request will match the last value set via this request. -
isEnabled(
) → Future< IsEnabledResult> - Query whether analytics is enabled.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendEvent(
String action) → Future - Send information about client events.
-
sendTiming(
String? event, int? millis) → Future - Send timing information for client events (e.g. code completions).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited