Airbridge class

Constructors

Airbridge()

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

allowTrackingItem(AirbridgeTrackingBlocklist item) → void
Allows tracking for the specified AirbridgeTrackingBlocklist item. This function removes the given item from the current TrackingBlocklist applied in the airbridge.json, enabling tracking at runtime.
blockTrackingItem(AirbridgeTrackingBlocklist item) → void
Blocks tracking for the specified AirbridgeTrackingBlocklist item. This function adds the given item to the current TrackingBlocklist applied in the airbridge.json, disabling tracking at runtime.
clearDeviceAlias() → void
Clears all device aliases.
clearUser() → void
Clears all user information.
clearUserAlias() → void
Clears all user aliases.
clearUserAttributes() → void
Clears all user attributes.
clearUserEmail() → void
Clear the user email.
clearUserID() → void
Clear the user ID.
clearUserPhone() → void
Clear the user phone number.
click({required String trackingLink, void onSuccess()?, void onFailure(String)?}) → Future<bool>
Notifies that the in-app area within the app has been exposed to the user.
Creates a tracking-link using airbridge-server that move user to specific page of app and track click-event.
createWebInterfaceScript({required String webToken, required String postMessageScript}) → Future<String?>
Creates a script that initialize the web interface.
disableSDK() → void
Disables the SDK.
enableSDK() → void
Enables the SDK.
fetchAirbridgeGeneratedUUID({required void onSuccess(String), void onFailure(String)?}) → Future<bool>
Fetch airbridgeGeneratedUUID of SDK.
fetchDeviceUUID({required void onSuccess(String), void onFailure(String)?}) → Future<bool>
Fetch deviceUUID of SDK.
handleWebInterfaceCommand(String command) → void
Handles commands from the web interface.
impression({required String trackingLink, void onSuccess()?, void onFailure(String)?}) → Future<bool>
Notifies that an in-app area within an app has been clicked on by the user.
isInAppPurchaseTrackingEnabled() → Future<bool>
Indicates that SDK can track event automatically for each user purchases product through in-app-purchase.
isSDKEnabled() → Future<bool>
Checks whether the SDK is currently enabled.
isTrackingEnabled() → Future<bool>
Checks whether the tracking feature of SDK is currently enabled.
isUninstallTrackingNotification(Map<String, dynamic> notification) → bool
Indicates whether notification was sent by Airbridge to track uninstall of app.
registerPushToken(String token) → void
Registers the FCM or APNS registration token to track app uninstalls.
removeDeviceAlias({required String key}) → void
Removes the device alias with the given key.
removeUserAlias({required String key}) → void
Removes the user alias with the given key.
removeUserAttribute({required String key}) → void
Removes the user attribute with the given key.
requestTrackingAuthorization({required void onComplete(AirbridgeTrackingAuthorization)}) → Future<bool>
Requests App Tracking Transparency authorization. iOS only
setAdditionalEventAttributes({required List<AirbridgeEventType> types, Map<String, dynamic>? semanticAttributes, Map<String, dynamic>? customAttributes}) → void
Sets additional attributes of the events that are tracked by the SDK automatically. The attributes replace the ones set before for each of the given types. Passing null or empty attributes for both parameters clears the ones set before.
setDeviceAlias({required String key, required String value}) → void
Sets the key, value pair to the device alias.
setOnAttributionReceived(void onReceived(Map<String, String>)) → void
Sets a listener for receiving attribution of install event.
setOnDeeplinkReceived(void onReceived(String)) → void
Handles deeplink and deferred-deeplink.
setUserAlias({required String key, required String value}) → void
Sets the key, value pair to the user alias.
setUserAttribute({required String key, required dynamic value}) → void
Sets the key, value pair to the user attribute.
setUserEmail(String email) → void
Sets the user email.
setUserID(String id) → void
Sets the user ID.
setUserPhone(String phone) → void
Sets the user phone number.
startInAppPurchaseTracking() → void
Starts tracking event automatically for each user purchases product through in-app-purchase.
startTracking() → void
Start collecting and transferring events.
stopInAppPurchaseTracking() → void
Stops tracking event automatically for each user purchases product through in-app-purchase.
stopTracking() → void
Stop collecting and transferring events.
trackEvent({required String category, Map<String, dynamic>? semanticAttributes, Map<String, dynamic>? customAttributes}) → void
Tracks user behavior through event tracking with attributes.
trackingAuthorizationStatus() → Future<AirbridgeTrackingAuthorization>
Returns the current App Tracking Transparency authorization status. iOS only
trackStoreInAppPurchaseEvent({required Map<String, dynamic> purchase, Map<String, dynamic>? semanticAttributes, Map<String, dynamic>? customAttributes}) → void
Tracks an in-app-purchase event with the purchase passed from the app.