AirbridgeInterface

open class AirbridgeInterface : AirbridgeFunctions

Contains every features of SDK.

Note A Class extending AirbridgeInterface becomes isolated SDK instance. It can be used to install multiple Airbridge app.

object AirbridgeGrape: AirbridgeInterface()
object AirbridgeBanana: AirbridgeInterface()

// Each class works independently.
AirbridgeGrape.initializeSDK(...)
AirbridgeBanana.initializeSDK(...)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Allows tracking for the specified AirbridgeTrackingBlocklist item.

Link copied to clipboard

Blocks tracking for the specified AirbridgeTrackingBlocklist item.

Link copied to clipboard
override fun clearDeviceAlias()

Clears all device aliases.

Link copied to clipboard
override fun clearUser()

Clears all user information.

Link copied to clipboard
override fun clearUserAlias()

Clears all user aliases.

Link copied to clipboard
override fun clearUserAttributes()

Clears all user attributes.

Link copied to clipboard
override fun clearUserEmail()

Clear the user email.

Link copied to clipboard
override fun clearUserID()

Clear the user ID.

Link copied to clipboard
override fun clearUserPhone()

Clear the user phone number.

Link copied to clipboard
override fun click(trackingLink: Uri): Boolean
override fun click(trackingLink: Uri, onSuccess: OnSuccess<Unit>?): Boolean
override fun click(trackingLink: Uri, onSuccess: OnSuccess<Unit>?, onFailure: OnFailure?): Boolean

Notifies that an in-app area within an app has been clicked on by the user.

Link copied to clipboard
override fun createTrackingLink(channel: String, option: Map<String, Any>, onSuccess: OnSuccess<AirbridgeTrackingLink>)
override fun createTrackingLink(channel: String, option: Map<String, Any>, onSuccess: OnSuccess<AirbridgeTrackingLink>, onFailure: OnFailure?)

Creates a tracking-link using airbridge-server that move user to specific page of app and track click-event.

Link copied to clipboard
override fun createWebInterfaceScript(webToken: String, postMessageScript: String): String

Creates script that initialize web interface to implement web interface manually.

Link copied to clipboard
override fun disableSDK()

Disables the SDK.

Link copied to clipboard
override fun enableSDK()

Enables the SDK.

Link copied to clipboard
override fun fetchAirbridgeGeneratedUUID(onSuccess: OnSuccess<String>, onFailure: OnFailure?): Boolean

Fetches the Airbridge Generated UUID using the provided callbacks for success and failure.

Link copied to clipboard

fetch Amazon Advertising ID info

Link copied to clipboard
override fun fetchDeviceUUID(onSuccess: OnSuccess<String>): Boolean
override fun fetchDeviceUUID(onSuccess: OnSuccess<String>, onFailure: OnFailure?): Boolean

Fetches the Device UUID using the provided callbacks for success and failure.

Link copied to clipboard

fetch Galaxy store install referrer

Link copied to clipboard

fetch Google Advertising ID info

Link copied to clipboard

fetch Google install referrer

Link copied to clipboard

fetch Huawei Advertising ID info

Link copied to clipboard

fetch Huawei install referrer

Link copied to clipboard

fetch Meta install referrer

Link copied to clipboard
override fun handleDeeplink(intent: Intent, onSuccess: OnSuccess<Uri>): Boolean
override fun handleDeeplink(intent: Intent, onSuccess: OnSuccess<Uri>, onFailure: OnFailure?): Boolean

Handle Airbridge's deep link from the provided intent and invoke a callback based on the result.

Link copied to clipboard
override fun handleDeferredDeeplink(onSuccess: OnSuccess<Uri?>): Boolean
override fun handleDeferredDeeplink(onSuccess: OnSuccess<Uri?>, onFailure: OnFailure?): Boolean

Handle deferred deep link and invoke a callback based on the result.

Link copied to clipboard
override fun handleWebInterfaceCommand(command: String)

Handles command from web interface to implement web interface manually.

Link copied to clipboard
override fun impression(trackingLink: Uri): Boolean
override fun impression(trackingLink: Uri, onSuccess: OnSuccess<Unit>?): Boolean
override fun impression(trackingLink: Uri, onSuccess: OnSuccess<Unit>?, onFailure: OnFailure?): Boolean

Notifies that an in-app area within an app has been exposed on by the user.

Link copied to clipboard
override fun initializeSDK(app: Application, option: AirbridgeOption)

Initializes the SDK with the provided app and option.

Link copied to clipboard

Indicates that SDK can track event automatically for each user purchases product through in-app-purchase.

Link copied to clipboard
override fun isSDKEnabled(): Boolean

Checks whether the SDK is currently enabled.

Link copied to clipboard
override fun isTrackingEnabled(): Boolean

Checks whether the SDK is currently enabled for tracking.

Link copied to clipboard
override fun isUninstallTrackingNotification(remoteMessage: RemoteMessage): Boolean

check if a push message is uninstall tracking notification

Link copied to clipboard
override fun registerPushToken(token: String)

Registers the FCM registration token to track app uninstalls.

Link copied to clipboard
override fun removeDeviceAlias(key: String)

Removes the device alias with the given key.

Link copied to clipboard
override fun removeUserAlias(key: String)

Removes the user alias with the given key.

Link copied to clipboard
override fun removeUserAttribute(key: String)

Removes the user attribute with the given key.

Link copied to clipboard
override fun setDeviceAlias(key: String, value: String)

Sets the key, value pair to the device alias.

Link copied to clipboard
override fun setUserAlias(key: String, value: String)

Sets the key, value pair to the user alias.

Link copied to clipboard
override fun setUserAttribute(key: String, value: Boolean)
override fun setUserAttribute(key: String, value: Double)
override fun setUserAttribute(key: String, value: Float)
override fun setUserAttribute(key: String, value: Int)
override fun setUserAttribute(key: String, value: Long)
override fun setUserAttribute(key: String, value: String)

Sets the key, value pair to the user attribute.

Link copied to clipboard
override fun setUserEmail(email: String)

Sets the user email.

Link copied to clipboard
override fun setUserID(id: String)

Sets the user ID.

Link copied to clipboard
override fun setUserPhone(phone: String)

Sets the user phone number.

Link copied to clipboard
override fun setWebInterface(webView: WebView, webToken: String)

Enables the Android SDK to automatically pull all events from the web SDK that is installed on the website of the WebView environment.

Link copied to clipboard

Starts tracking event automatically for each user purchases product through in-app-purchase.

Link copied to clipboard
override fun startTracking()

Start collecting and transferring events.

Link copied to clipboard

Stops tracking event automatically for each user purchases product through in-app-purchase.

Link copied to clipboard
override fun stopTracking()

Stop collecting and transferring events.

Link copied to clipboard
override fun trackEvent(category: String)

Tracks user behavior through event tracking.

override fun trackEvent(category: String, semanticAttributes: Map<String, Any?>?)
override fun trackEvent(category: String, semanticAttributes: Map<String, Any?>?, customAttributes: Map<String, Any?>?)

Tracks user behavior through event tracking with attributes.