MethodChannelSprigPlugin class

An implementation of SprigPlatform that uses method channels.

Inheritance

Constructors

MethodChannelSprigPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
isPluginInitialized bool
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configure(String environmentId) Future
override
displaySurveyWithId(int id) Future
display a survey using the survey id, this method is currently only available on IOS
override
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presentDebugSurvey() Future
verify you’ve set up the installation and environment ID
override
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
override
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
override
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.
override
toString() String
A string representation of this object.
inherited
track(String event) Future<SurveryStatus>
track a specific event defined on your dashboard
override

Operators

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