UserleapFlutter class
UserleapFlutter Plugin
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isPluginInitialized → bool
-
no setter
Static Methods
-
configure(
String environmentId) → Future -
displaySurveyWithId(
int id) → Future - display a survey using the survey id, this method is currently only available on IOS
-
logout(
) → Future - When a user logs out of your app, make sure to log out of Userleap. This will prevent new activity being associated with the wrong user.
-
presentDebugSurvey(
) → Future - verify you’ve set up the installation and environment ID
-
setEmailAddress(
String email) → Future - Set the user email after configuring if they are already logged in or after the user logs in to your app
-
setUserIdentifier(
String userId) → Future - Set the userId after configuring if they are already logged in or after the user logs in to your app: This user identifier is stored locally and this method can be called multiple times safely. We recommend you set the user identifier every time you configure UserLeap and anytime your customers login to be safe UserLeap allows you to identify visitors by supplying a userId. While tracking userIds is optional, it helps to provide a consistent experience across platforms and prevents users from seeing the same survey multiple times
-
setVisitorAttribute(
String key, String value) → Future - There are various other properties you may want to set. These properties are surfaced as survey targeting options in the UserLeap dashboard and allow you to send surveys to the right user segments.
-
track(
String event) → Future< SurveryStatus> - track a specific event defined on your dashboard