FirebaseAnalyticsPlatform class abstract
The interface that implementations of firebase_analytics
must extend.
Platform implementations should extend this class rather than implement it
as firebase_analytics
does not consider newly added methods to be breaking
changes. Extending this class (using extends
) ensures that the subclass
will get the default implementation, while platform implementations that
implements
this interface will be broken by newly added
FirebaseAnalyticsPlatform methods.
- Implementers
Constructors
Properties
Methods
-
logEvent(
{String name, Map< String, dynamic> parameters}) → Future<void> -
Logs the given event
name
with the givenparameters
. -
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.
-
setAnalyticsCollectionEnabled(
bool enabled) → Future< void> - Sets whether analytics collection is enabled for this app.
-
setCurrentScreen(
{String screenName, String screenClassOverride}) → Future< void> - Sets the current screen name, which specifies the current visual context in your app.
-
setSessionTimeoutDuration(
int milliseconds) → Future< void> - Sets the duration of inactivity that terminates the current session.
-
setUserId(
String id) → Future< void> - Sets the user id.
-
setUserProperty(
{String name, String value}) → Future< void> - Sets a user property to the given value.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FirebaseAnalyticsPlatform
-
The default instance of FirebaseAnalyticsPlatform to use.
getter/setter pair