Repro class
When using Repro's feature, call the API via this class.
Constructors
- Repro()
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
- remoteConfig → RemoteConfig
-
Get a singleton instance of RemoteConfig (UX Optimizer).
When using RemoteConfig's features, call the API via this property.
no setter
Static Methods
-
applicationShouldHandlePushNotification(
Map< String, dynamic> data) → Future<bool> - Decide whether to use the received message in the application or not. If this method returns false, the message will be processed by the SDK.
-
disableInAppMessagesOnForegroundTransition(
) → Future< void> -
Prolong the presentation of in-app messages.
This API must be called before
Repro.setup()
. -
enableInAppMessagesOnForegroundTransition(
) → Future< void> - Enable showing the InApp when the app is in foreground. This API should usually be called when the app's splash screen is complete.
-
getDeviceID(
) → Future< String> - Get the device ID.
-
getNewsFeeds(
{required int limit, int? offsetID, required NewsFeedCampaignType campaignType}) → Future< List< NewsFeedEntry> > - Get a list of news feeds.
-
getUserID(
) → Future< String> - Get the user ID which you set.
-
isAlreadyReceivedPushNotification(
Map< String, dynamic> data) → Future<bool> - Detect the message has already been received or not. The device may receive duplicated messages if the application is being uninstalled and re-installed repeatedly.
-
markPushNotificationReceived(
Map< String, dynamic> data) → Future<void> - Mark the message received.
-
optIn(
bool endUserOptedIn) → Future< void> - Enables or disables the SDK to collect data and display in-app messages.
-
setDateUserProfile(
String key, DateTime value) → Future< void> - Set a user profile of type DateTime.
-
setDoubleUserProfile(
String key, double value) → Future< void> - Set a user profile of type double.
-
setIntUserProfile(
String key, int value) → Future< void> - Set a user profile of type int.
-
setLogLevel(
LogLevel logLevel) → Future< void> - You can change the log level to one of the followings:
-
setOpenUrlCallback(
_ReproCallback callback) → Future< void> -
setPushRegistrationID(
String token) → Future< void> - Set the FCM Registration ID.
-
setSilverEggCookie(
String cookie) → Future< void> - Set the Cookie for Silver Egg.
-
setSilverEggProdKey(
String prodKey) → Future< void> - Set the ProdKey for Silve Egg.
-
setStringUserProfile(
String key, String value) → Future< void> - Set a user profile of type String.
-
setUserAge(
int age) → Future< void> - Set the age of the user to the user profile.
-
setUserDateOfBirth(
DateTime birthday) → Future< void> - Set the user's date of birth to the user profile.
-
setUserEmailAddress(
String address) → Future< void> - Set the email address of the user to the user profile.
-
setUserGender(
UserGender userGender) → Future< void> - Set the gender of the user to the user profile.
-
setUserID(
String userID) → Future< void> - Set the user ID.
-
setUserResidencePrefecture(
UserProfilePrefecture prefecture) → Future< void> - Set the user's prefecture of residence to the user profile.
-
track(
String event, [Map< String, dynamic> properties = const {}]) → Future<void> - Track a custom event.
-
trackAddPaymentInfo(
[Map< String, dynamic> properties = const {}]) → Future<void> - Track payment information entry operations.
-
trackAddToCart(
String contentId, [Map< String, dynamic> properties = const {}]) → Future<void> - Track the operation to add to the cart.
-
trackAddToWishlist(
[Map< String, dynamic> properties = const {}]) → Future<void> - Track the operation to add products to the wish list.
-
trackCompleteRegistration(
[Map< String, dynamic> properties = const {}]) → Future<void> - Track the completion of user registration.
-
trackInitiateCheckout(
[Map< String, dynamic> properties = const {}]) → Future<void> - Track the start of the purchase process.
-
trackLead(
[Map< String, dynamic> properties = const {}]) → Future<void> - Starts the trial of the app. Please use this with apps that do not require user registration at the time of installation.
-
trackNotificationOpened(
String notificationId) → Future< void> -
trackPurchase(
String contentId, double value, String currency, [Map< String, dynamic> properties = const {}]) → Future<void> - Track purchase operations.
-
trackSearch(
[Map< String, dynamic> properties = const {}]) → Future<void> - Track the operation to search.
- Track the operation to share to social media (Facebook, Twitter, etc.).
-
trackViewContent(
String contentId, [Map< String, dynamic> properties = const {}]) → Future<void> - Track the content browsing operation.
-
updateNewsFeeds(
List< NewsFeedEntry> newsFeeds) → Future<void> - Update the read/shown flag of the news feed.
Constants
- NOTIFICATION_ID_KEY → const String
- Key corresponding to the ID of the push notification sent from Repro. This is used in trackNotificationOpened to track when a message in JSON format has been opened.