MethodChannelFirebaseAnalytics class

The method channel implementation of FirebaseAnalyticsPlatform.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
isMock bool
Only mock implementations should set this to true.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

logEvent({required String name, Map<String, Object?>? parameters}) Future<void>
Logs the given event name with the given parameters.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetAnalyticsData() Future<void>
Clears all analytics data for this app from the device and resets the app instance id.
override
setAnalyticsCollectionEnabled(bool enabled) Future<void>
Sets whether analytics collection is enabled for this app.
override
setCurrentScreen({required String? screenName, String? screenClassOverride}) Future<void>
Sets the current screen name, which specifies the current visual context in your app.
override
setSessionTimeoutDuration(int milliseconds) Future<void>
Sets the duration of inactivity that terminates the current session.
override
setUserId(String? id) Future<void>
Sets the user id.
override
setUserProperty({required String name, required String? value}) Future<void>
Sets a user property to the given value.
override
toString() String
A string representation of this object.
inherited

Operators

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