MethodChannelWootricsdkFlutter class

An implementation of WootricsdkFlutterPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configure({required String clientId, required String accountToken}) → dynamic
override
forceSurvey(bool forceSurvey) → dynamic
If forceSurvey is set to true, the survey is displayed skipping eligibility check AND even if user was already surveyed. This is for test purposes only as it will display the survey every time and for every user.
override
getPlatformVersion() Future<String?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
passScoreAndTextToURL(bool passScoreAndTextToURL) → dynamic
If you enable this setting, score and feedback text will be added as wootric_score and wootric_text params to the “thank you” URL you have provided.
override
setEndUserCreatedAt(int timestamp) → dynamic
When creating a new end user for survey, it will set the external creation date (so for example, date, when end user was created in your iOS application). This value is also used in eligibility check, to determine if end user should be surveyed.
override
setEndUserEmail(String endUserEmail) → dynamic
While endUserEmail is not required it is HIGHLY recommended to set it if possible.
override
setEndUserExternalId(String endUserExternalId) → dynamic
Set an endUserExternalId for the end user. This value is optional.
override
setEndUserProperties(Map<String, String> endUserProperties) → dynamic
endUserProperties can be provided as an Map<String, String> object.
override
setFirstSurveyAfter(int numberOfDays) → dynamic
If not set, defaults to value from admin panel. Used to check if end user was created/last seen earlier than ago and therefore if survey is required.
override
setLanguageCode(String languageCode) → dynamic
Wootric allows you to set a custom language for the survey modal. To set a custom language pass appropriate languageCode. Please be advised, that custom messages and/or placeholder, takes precedence over language settings.
override
setLogLevelError() → dynamic
Set WTRLogger level to Error i.e. it will only show error logs from the WootricSDK.
override
setLogLevelNone() → dynamic
Set WTRLogger level to None i.e. it won’t show any log from the WootricSDK.
override
setLogLevelVerbose() → dynamic
Set WTRLogger level to Verbose i.e. it will show all logs from the WootricSDK.
override
setSendButtonBackgroundColor(String color) → dynamic
Wootric allows you to set a custom color for the Send button. To set a custom color pass appropriate color in hex format.
override
setSliderColor(String color) → dynamic
Wootric allows you to set a custom color for the survey slider. To set a custom color pass appropriate color in hex format.
override
setSocialSharingColor(String color) → dynamic
Wootric allows you to set a custom color for social sharing buttons. To set a custom color pass appropriate color in hex format.
override
setSurveyedDefault(bool surveyedDefault) → dynamic
iOS relevant only: Right after a vote or dismiss we are setting a NSUserDefault that lasts for 90 days and indicates that end user was already surveyed on this device. We are doing this to lower the requests amount to our eligibility server. If your survey throttle is different than 90 days and/or you don’t want to set the surveyed “cookie” you can set this option surveyedDefault to false.
override
setThankYouButtonBackgroundColor(String color) → dynamic
Wootric allows you to set a custom color for the Thank You button. To set a custom color pass appropriate color in hex format.
override
showDisclaimer(String disclaimerText, String disclaimerLinkURL, String disclaimerLinkText) → dynamic
Wootric allows you to set a disclaimer text with a link To set a disclaimer text pass disclaimerText, a disclaimerLinkURL and a disclaimerLinkText
override
showOptOut(bool showOptOut) → dynamic
If showOptOut is set to true, it will show an option for the end user to opt out of being surveyed. Default value is NO.
override
showSurvey() → dynamic
Display Wootric survey driven by configured settings.
override
showSurveyWithEvent(String eventName) → dynamic
Display Wootric survey driven by configured settings and event name.
override
skipFeedbackScreenForPromoter(bool skipFeedbackScreenForPromoter) → dynamic
With this option enabled, promoters (score 9-10) will be taken directly to third (social share) screen, skipping the second (feedback) one.
override
surveyImmediately(bool surveyImmediately) → dynamic
If surveyImmediately is set to true and user wasn’t surveyed yet - eligibility check will return true and survey will be displayed.
override
toString() String
A string representation of this object.
inherited

Operators

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