Amplitude class
Constructors
- Amplitude.new(Configuration configuration, [MethodChannel? methodChannel])
- Returns an Amplitude instance
Properties
- configuration ↔ Configuration
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isBuilt
↔ Future<
bool> -
Whether the Amplitude instance has been successfully initialized
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
flush(
) → Future< void> - Flush events in storage.
-
getDeviceId(
) → Future< String?> - Get the current device ID.
-
getSessionId(
) → Future< int?> - Get the current session ID.
-
getUserId(
) → Future< String?> - Get the current user Id.
-
groupIdentify(
String groupType, String groupName, Identify identify, [EventOptions? options]) → Future< void> - Updates the properties of particular groups.
-
identify(
Identify identify, [EventOptions? options]) → Future< void> - Updates user properties using operations provided via Identify API.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> - Resets userId to 'null' and deviceId to a random UUID.
-
revenue(
Revenue revenue, [EventOptions? options]) → Future< void> - Tracks revenue generated by a user.
-
setDeviceId(
String? deviceId) → Future< void> - Sets a custom device ID.
-
setGroup(
String groupType, dynamic groupName, [EventOptions? options]) → Future< void> - Adds a user to a group or groups. You need to specify a groupType and groupName(s).
-
setOptOut(
bool enabled) → Future< void> - Web only. Disables tracking.
-
setUserId(
String? userId) → Future< void> - Set a custom user Id.
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
BaseEvent event, [EventOptions? options]) → Future< void> - Tracks an event. Events are saved locally.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited