References

Public classes and interfaces for callbacks.

Classes

  • FluxMobileSDK
  • FluxMobileSDKAppCompatActivity

Interfaces

  • FluxMobileSDKListener
  • FluxMobileSDKSessionListener
  • FluxMobileSDKClearCartListener
  • FluxMobileSDKkCheckoutListener
  • FluxMobileSDKEventListener
  • FluxMobileSDKActionListener

FluxMobileSDK

The top level Flux Panda SDK singleton that provides methods for initialize player, open player and get data from player.

Public Method

  • Initialize the Flux Panda SDK
//Last parameter handler is a callback when SDK initialized and ready to use. App should call all other method after this callback.
fun initialize(domain: String = "", channelId: String, apiKey: String, userName: String = "", handler: (Boolean) -> Unit)
  • Open the player using sessionId
fun open(sessionId: String)
fun open(sessionId: String)

Open the player using sessionId and timeIndex

fun open(sessionId: String, timeIndex: String)
  • Close the player
fun close()
  • Minimize the player
fun minimize()
  • Maximize the player
fun maximize()
  • Clear the shopping cart
fun clearShoppingCart()
  • Get sessions
fun getSessions()

FluxMobileSDKListener

Flux Panda SDK listener that provides callbacks.

Public Method

  • Callback method of close
fun onClose()
  • Callback method of minimize
fun onMinimize()
  • Callback method of maximize
fun onMaximize()
  • Callback method of getSessions
fun onGetSessions(data: Map<String, Any>)
  • Callback method of clearShoppingCart
fun onClearShoppingCart()
  • Flux Panda SDK call this callback method when user click checkout from player
fun onCheckout(data: Map<String, Any>)
  • Flux Panda SDK call this callback method for specific events
fun onEvent(data: Map<String, Any>)

FluxMobileSDKActionListener

Flux Panda SDK Action listener that provides callbacks.

Public Method

  • Callback method of close
fun onClose()
  • Callback method of minimize
fun onMinimize()
  • Callback method of maximize
fun onMaximize()

FluxMobileSDKSessionListener

Flux Panda SDK Session listener that provides callbacks.

Public Method

  • Callback method of getSessions
fun onGetSessions(data: Map<String, Any>)

FluxMobileSDKClearCartListener

Flux Panda SDK Cart listener that provides callbacks.

Public Method

  • Callback method of clearShoppingCart
fun onClearShoppingCart()

FluxMobileSDKCheckoutListener

Flux Panda SDK Checkout listener that provides callbacks.

Public Method

  • Flux Panda SDK call this callback method when user click checkout from player
fun onCheckout(data: Map<String, Any>)

FluxMobileSDKEventListener

Flux Panda SDK Event listener that provides callbacks.

Public Method

  • Flux Panda SDK call this callback method for specific events
fun onEvent(data: Map<String, Any>)