Airflux

object Airflux

Functions

Link copied to clipboard

Removes every context information.

Removes every context specific information.

Removes every context specific item of key-value information.

Link copied to clipboard

Removes every user’s information.

Removes user’s specific information.

fun clearUser(name: String, key: String)

Removes user’s specific item of key-value information.

Link copied to clipboard

Disables SDK.

Link copied to clipboard

Enables SDK.

Link copied to clipboard

Fetches deviceUUID of Airflux.

Link copied to clipboard

Initializes the SDK with the provided app and option.

Link copied to clipboard

Indicates SDK is enabled.

Link copied to clipboard

Indicates tracking is enabled.

Link copied to clipboard
fun requestInference(name: String, parameters: Map<String, Any>? = null, onSuccess: BiConsumer<String?, Map<String, Any>?>, onFailure: Consumer<AirfluxError>): Boolean

Requests inference.

Link copied to clipboard

Sets specific context information without value.

fun setContext(name: String, value: Boolean)
fun setContext(name: String, value: Double)
fun setContext(name: String, value: Float)
fun setContext(name: String, value: Int)
fun setContext(name: String, value: Long)
fun setContext(name: String, value: String)

Sets specific context information.

fun setContext(name: String, key: String, value: Boolean)
fun setContext(name: String, key: String, value: Double)
fun setContext(name: String, key: String, value: Float)
fun setContext(name: String, key: String, value: Int)
fun setContext(name: String, key: String, value: Long)
fun setContext(name: String, key: String, value: String)

Sets specific context item of key-value information.

Link copied to clipboard
fun setUser(name: String, value: Boolean)
fun setUser(name: String, value: Double)
fun setUser(name: String, value: Float)
fun setUser(name: String, value: Int)
fun setUser(name: String, value: Long)
fun setUser(name: String, value: String)

Sets user’s specific information.

fun setUser(name: String, key: String, value: Boolean)
fun setUser(name: String, key: String, value: Double)
fun setUser(name: String, key: String, value: Float)
fun setUser(name: String, key: String, value: Int)
fun setUser(name: String, key: String, value: Long)
fun setUser(name: String, key: String, value: String)

Sets user’s specific item of key-value information.

Link copied to clipboard

Starts tracking.

Link copied to clipboard

Stops tracking.

Link copied to clipboard
fun trackEvent(category: String, semanticAttributes: Map<String, Any?>? = null, customAttributes: Map<String, Any?>? = null)

Tracks user behavior through event tracking with attributes.