Package ai.systema.android

Types

SystemaAIClient
Link copied to clipboard
object SystemaAIClient
SystemaAndroidStorage
Link copied to clipboard
open class SystemaAndroidStorage(context: Context) : SystemaKVStore

Functions

addContainerTags
Link copied to clipboard
fun SystemaAI.addContainerTags(v: View, resp: RecommendationResponse, tagMapping: Map<String, Int>? = null): Result<View>

Add recommendation response tags to a container view Here view refers to an element that containers other product related view elements. i.e. ListView

addOnAttachStateChangeListener
Link copied to clipboard
fun SystemaAI.addOnAttachStateChangeListener(v: View, listener: View.OnAttachStateChangeListener? = null, tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaOnAttachStateChangeListener>
addOnClickListener
Link copied to clipboard
fun SystemaAI.addOnClickListener(v: View, listener: View.OnClickListener? = null, tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaViewOnClickListener>
addOnLayoutChangeListener
Link copied to clipboard
fun SystemaAI.addOnLayoutChangeListener(v: View, listener: View.OnLayoutChangeListener? = null, tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaOnLayoutChangeListener>
addProductTags
Link copied to clipboard
fun SystemaAI.addProductTags(v: View, product: Product, referrerUrl: String = "", tagMapping: Map<String, Int>? = null): Result<View>

Add product related tags for a view or button Here view refers to an element that represents a single product

getAddToCartListener
Link copied to clipboard
fun SystemaAI.getAddToCartListener(getItems: () -> List<CartItem>, tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaOnClickListener>
getAddToWishlistListener
Link copied to clipboard
fun SystemaAI.getAddToWishlistListener(getItems: () -> List<WishlistItem>, tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaOnClickListener>
getOnAttachStateChangeListener
Link copied to clipboard
fun SystemaAI.getOnAttachStateChangeListener(tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaOnAttachStateChangeListener>
getOnClickListener
Link copied to clipboard
fun SystemaAI.getOnClickListener(tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaViewOnClickListener>
getOnLayoutChangeListener
Link copied to clipboard
fun SystemaAI.getOnLayoutChangeListener(tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaOnLayoutChangeListener>
getRemoveFromCartListener
Link copied to clipboard
fun SystemaAI.getRemoveFromCartListener(getItem: () -> CartItem, tagMapping: Map<String, Int>? = null, callback: (Result<HttpResponse>) -> Unit): Result<SystemaOnClickListener>
monitorAddToCartButton
Link copied to clipboard
fun SystemaAI.monitorAddToCartButton(btn: View, product: Product, getItems: () -> List<CartItem>, onClickListener: View.OnClickListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaOnClickListener?
monitorAddToWishlistButton
Link copied to clipboard
fun SystemaAI.monitorAddToWishlistButton(btn: View, product: Product, getItems: () -> List<WishlistItem>, onClickListener: View.OnClickListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaOnClickListener?
monitorNonProductPage
Link copied to clipboard
fun SystemaAI.monitorNonProductPage(view: View, pageUrl: String, attachStateChangeListener: View.OnAttachStateChangeListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaOnAttachStateChangeListener?
monitorProductPage
Link copied to clipboard
fun SystemaAI.monitorProductPage(view: View, product: Product, attachStateChangeListener: View.OnAttachStateChangeListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaOnAttachStateChangeListener?
monitorRecContainer
Link copied to clipboard
fun SystemaAI.monitorRecContainer(recContainer: View, resp: RecommendationResponse, layoutChangeListener: View.OnLayoutChangeListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaOnLayoutChangeListener?
monitorRecItem
Link copied to clipboard
fun SystemaAI.monitorRecItem(view: View, product: Product, onClickListener: View.OnClickListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaViewOnClickListener?
monitorRemoveFromCartButton
Link copied to clipboard
fun SystemaAI.monitorRemoveFromCartButton(btn: View, product: Product, getItem: () -> CartItem, onClickListener: View.OnClickListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaOnClickListener?
monitorRemoveFromWishlistButton
Link copied to clipboard
fun SystemaAI.monitorRemoveFromWishlistButton(btn: View, product: Product, getItem: () -> WishlistItem, onClickListener: View.OnClickListener? = null, callback: (Result<HttpResponse>) -> Unit): SystemaOnClickListener?