SdkManager class

Constructors

SdkManager({required Network network, required SdkParamPersistenceService sdkDataPersistenceService})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
network Network
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkDataPersistenceService SdkParamPersistenceService
final

Methods

addEvent({required String eventName, required EventType eventType, Map<String, dynamic>? eventData}) Future<void>
createUser({required User user}) Future<void>
currentUser() User?
initializeSdk({required String apiKey, required String siteId, required String baseUrl, required bool isSubscribed, bool pushEnabled = true, String? appVersion}) → void
will only save siteId && apiKey and save them in [SharedPreferences}
logout() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveDeviceToken({required String deviceToken}) → void
toString() String
A string representation of this object.
inherited
trackNotificationType({required String notificationId, required NotificationActivityType activityType}) → void
updateDeviceToken({required String deviceToken}) → void
will only called whenever device token changed
updateUser({required User user}) Future<void>

Operators

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