Methods
-
addAlias(String aliasName, String aliasLabel)
→ void
-
Add alias for current user.
-
addToCustomAttributeArray(String key, String value)
→ void
-
Adds an element to a custom attribute array.
-
addToSubscriptionGroup(String groupId)
→ void
-
Adds the user to a Subscription Group using the group's UUID provided
in the Braze dashboard.
-
changeUser(String userId, {String? sdkAuthSignature})
→ void
-
Changes the current Braze userId.
If
sdkAuthSignature
is present, passes that token to the native layer.
-
disableSDK()
→ void
-
Disables the SDK. Please consult iOS and Android-specific
implementation details before using.
-
enableSDK()
→ void
-
Enables the SDK. Please consult iOS and Android-specific
implementation details before using.
-
getInstallTrackingId()
→ Future<String>
-
Gets the install tracking id.
-
incrementCustomUserAttribute(String key, int value)
→ void
-
Increments an integer typed custom attribute.
-
launchContentCards()
→ void
-
Launches Content Card Feed.
-
logContentCardClicked(BrazeContentCard contentCard)
→ void
-
Logs a click for the provided Content Card data.
-
logContentCardDismissed(BrazeContentCard contentCard)
→ void
-
Logs dismissal for the provided Content Card data.
-
logContentCardImpression(BrazeContentCard contentCard)
→ void
-
Logs an impression for the provided Content Card data.
-
logCustomEvent(String eventName, {Map<String, dynamic>? properties})
→ void
-
Logs a custom event to Braze.
-
logCustomEventWithProperties(String eventName, Map<String, dynamic> properties)
→ void
-
Logs a custom event to Braze.
-
logInAppMessageButtonClicked(BrazeInAppMessage inAppMessage, int buttonId)
→ void
-
Logs a button click for the provided in-app message button data.
-
logInAppMessageClicked(BrazeInAppMessage inAppMessage)
→ void
-
Logs a click for the provided in-app message data.
-
logInAppMessageImpression(BrazeInAppMessage inAppMessage)
→ void
-
Logs an impression for the provided in-app message data.
-
logPurchase(String productId, String currencyCode, double price, int quantity, {Map<String, dynamic>? properties})
→ void
-
Logs a purchase event to Braze.
-
logPurchaseWithProperties(String productId, String currencyCode, double price, int quantity, Map<String, dynamic> properties)
→ void
-
Logs a purchase event to Braze.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed.
inherited
-
registerAndroidPushToken(String pushToken)
→ void
-
Registers a push token for the current Android device with Braze.
-
removeFromCustomAttributeArray(String key, String value)
→ void
-
Removes an element from a custom attribute array.
-
removeFromSubscriptionGroup(String groupId)
→ void
-
Removes the user from a Subscription Group using the group's UUID provided
in the Braze dashboard.
-
requestContentCardsRefresh()
→ void
-
Refreshes Content Cards.
-
requestImmediateDataFlush()
→ void
-
Requests an immediate data flush.
-
requestLocationInitialization()
→ void
-
Requests location initialization.
-
setAttributionData(String? network, String? campaign, String? adGroup, String? creative)
→ void
-
Sets attribution data.
-
setBoolCustomUserAttribute(String key, bool value)
→ void
-
Sets a boolean typed custom attribute.
-
setBrazeSdkAuthenticationErrorCallback(dynamic callback(BrazeSdkAuthenticationError))
→ void
-
Sets a callback to receive in-app message data from Braze.
-
setCountry(String country)
→ void
-
Sets the country default user attribute.
-
setDateCustomUserAttribute(String key, DateTime value)
→ void
-
Sets a date custom attribute.
-
setDateOfBirth(int year, int month, int day)
→ void
-
Sets the dob default user attribute.
-
setDoubleCustomUserAttribute(String key, double value)
→ void
-
Sets a double typed custom attribute.
-
setEmail(String? email)
→ void
-
Sets the email default user attribute.
Pass in
null
to unset the user's email.
-
setEmailNotificationSubscriptionType(SubscriptionType type)
→ void
-
Sets email subscription state for the current user.
-
setFirstName(String firstName)
→ void
-
Sets the first name default user attribute.
-
setGender(String gender)
→ void
-
Sets the gender default user attribute.
-
setGoogleAdvertisingId(String id, bool adTrackingEnabled)
→ void
-
Sets Google Advertising Id for the current user.
-
setHomeCity(String homeCity)
→ void
-
Sets the home city default user attribute.
-
setIntCustomUserAttribute(String key, int value)
→ void
-
Sets a integer typed custom attribute.
-
setLanguage(String language)
→ void
-
Sets the language default user attribute.
-
setLastKnownLocation({required double latitude, required double longitude, double? altitude, double? accuracy, double? verticalAccuracy})
→ void
-
Sets the last known location.
-
setLastName(String lastName)
→ void
-
Sets the last name default user attribute.
-
setLocationCustomAttribute(String key, double lat, double long)
→ void
-
Sets a location custom attribute.
-
setPhoneNumber(String phoneNumber)
→ void
-
Sets the phone number default user attribute.
-
setPushNotificationSubscriptionType(SubscriptionType type)
→ void
-
Sets push subscription state for the current user.
-
setSdkAuthenticationSignature(String? sdkAuthSignature)
→ void
-
-
setStringCustomUserAttribute(String key, String value)
→ void
-
Sets a string typed custom attribute.
-
subscribeToContentCards(void onEvent(List<BrazeContentCard>))
→ StreamSubscription
-
Subscribes to the stream of content cards and calls
onEvent
when it
receives the list of content cards.
-
subscribeToInAppMessages(void onEvent(BrazeInAppMessage))
→ StreamSubscription
-
Subscribes to the stream of in-app messages and calls
onEvent
when it
receives an in-app message.
-
toString()
→ String
-
A string representation of this object.
inherited
-
unsetCustomUserAttribute(String key)
→ void
-
Unsets a custom attribute.
-
wipeData()
→ void
-
Wipes Data on board the SDK. Please consult iOS and Android-specific
implementation details before using.