Dfinery class

Dfinery SDK for Flutter.

This class provides access to Dfinery analytics and marketing automation features. Initialize the SDK with init or initWithConfig before using other methods.

Constructors

Dfinery()

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 Methods

createNotificationChannel({required Map<String, dynamic> properties}) → void
Creates a notification channel used on devices running Android 8.0 and higher.
createNotificationChannelGroup({required Map<String, dynamic> properties}) → void
Creates a notification channel group used on devices running Android 8.0 and higher.
deleteNotificationChannel({required String channelId}) → void
Deletes a notification channel used on devices running Android 8.0 and higher.
deleteNotificationChannelGroup({required String channelGroupId}) → void
Deletes a notification channel group used on devices running Android 8.0 and higher.
disableSDK() → void
In some extreme cases you might want to shut down all SDK functions due to legal and privacy compliance. This can be achieved with the disable API. Once this API is invoked, our SDK no longer communicates with our servers, stops functioning and also removes personal user data. You can re-enable the SDK at any time by calling the enable API.
enableSDK() → void
If the SDK is disabled, re-enable it and communicate with the server. If the SDK is enabled, no action is taken.
getGoogleAdvertisingId() → Future<DFGetGoogleAdvertisingIdCallback?>
Gets the Google Advertising ID and associated ad-tracking enabled field for this device.
getPushToken() → Future<String?>
Gets the FCM registration token to be used for push notification targeting.
init({required String serviceId}) → void
Initializes the Dfinery SDK
initWithConfig({required String serviceId, Map<String, dynamic>? config}) → void
Initializes the Dfinery SDK with the provided configuration settings.
logEvent({required String eventName, Map<String, dynamic>? properties}) → void
Reports an event. You can use your own custom event or also can use predefined events.
resetIdentity() → void
Resets identifier information.
setGoogleAdvertisingId({required String googleAdvertisingId, required bool isLimitAdTrackingEnabled}) → void
Sets the Google Advertising ID and associated ad-tracking enabled field for this device.
setIdentities({required Map<DFIdentity, String> values}) → void
Sets multiple additional information used to identify users. These values will be encrypted and stored in local storage.
setIdentity({required DFIdentity key, required String value}) → void
Sets additional information used to identify users. This value will be encrypted and stored in local storage.
setPushToken({required String pushToken}) → void
Sets the FCM registration token to be used for push notification targeting.
setUserProfile({required String key, required dynamic value}) → void
Sets the user's profile property value.
setUserProfiles({required Map<String, dynamic> values}) → void
Sets multiple user profile property values.