Amplitude class

Constructors

Amplitude(String instanceName)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearUserProperties() Future<void>
Clears all properties that are tracked on the user level. [...]
disableCoppaControl() Future<void>
Disable COPPA (Children's Online Privacy Protection Act) restrictions on IDFA, IDFV, city, IP address and location tracking.
enableCoppaControl() Future<void>
Enable COPPA (Children's Online Privacy Protection Act) restrictions on IDFA, IDFV, city, IP address and location tracking. [...]
groupIdentify(String groupType, String groupName, Identify groupIdentify, {bool outOfSession: false}) Future<void>
Use the Group Identify API to set or update properties of particular groups. However, these updates will only affect events going forward.
identify(Identify identify) Future<void>
Update user properties using operations provided via Identify API. [...]
init(String apiKey, {String userId}) Future<void>
logEvent(String eventType, {Map<String, dynamic> eventProperties, bool outOfSession}) Future<void>
Tracks an event. Events are saved locally. [...]
logRevenue(String productIdentifier, int quantity, double price) Future<void>
Tracks revenue. This allows us to automatically display data relevant to revenue on the Amplitude website, including average revenue per daily active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV) estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
logRevenueAmount(double amount) Future<void>
Tracks revenue. This allows us to automatically display data relevant to revenue on the Amplitude website, including average revenue per daily active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV) estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setGroup(String groupType, dynamic groupName) Future<void>
Adds a user to a group or groups. You need to specify a groupType and groupName(s). For example you can group people by their organization. In this case, groupType is "orgId", and groupName would be the actual ID(s). groupName can be a string or an array of strings to indicate a user in multiple groups. You can also call setGroup multiple times with different groupTypes to track multiple types of groups (up to 5 per app). Note: This will also set groupType: groupName as a user property.
setOptOut(bool optOut) Future<void>
Enables tracking opt out. [...]
setServerUrl(String serverUrl) Future<void>
Customize the destination for server url.
setUserId(String userId, {bool startNewSession}) Future<void>
If your app has its own login system that you want to track users with, you can set the userId.
setUserProperties(Map<String, dynamic> userProperties) Future<void>
Adds properties that are tracked on the user level. [...]
toString() String
Returns a string representation of this object.
inherited
trackingSessionEvents(bool trackingSessionEvents) Future<void>
Whether to automatically log start and end session events corresponding to the start and end of a user's session.
uploadEvents() Future<void>
Upload all unsent events.

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

getInstance({String instanceName: '\$default_instance'}) Amplitude