WootricsdkFlutterPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • WootricsdkFlutterPlatform
Implementers

Constructors

WootricsdkFlutterPlatform.new()
Constructs a WootricsdkFlutterPlatform.

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

configure({required String clientId, required String accountToken}) → dynamic
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.
getPlatformVersion() Future<String?>
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.
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.
setEndUserEmail(String endUserEmail) → dynamic
While endUserEmail is not required it is HIGHLY recommended to set it if possible.
setEndUserExternalId(String endUserExternalId) → dynamic
Set an endUserExternalId for the end user. This value is optional.
setEndUserProperties(Map<String, String> endUserProperties) → dynamic
endUserProperties can be provided as an Map<String, String> object.
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.
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.
setLogLevelError() → dynamic
Set WTRLogger level to Error i.e. it will only show error logs from the WootricSDK.
setLogLevelNone() → dynamic
Set WTRLogger level to None i.e. it won’t show any log from the WootricSDK.
setLogLevelVerbose() → dynamic
Set WTRLogger level to Verbose i.e. it will show all logs from the WootricSDK.
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.
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.
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.
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.
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.
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
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.
showSurvey() → dynamic
Display Wootric survey driven by configured settings.
showSurveyWithEvent(String eventName) → dynamic
Display Wootric survey driven by configured settings and event name.
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.
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.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance WootricsdkFlutterPlatform
The default instance of WootricsdkFlutterPlatform to use.
getter/setter pair