DefaultDialogEventListener

open class DefaultDialogEventListener(activity: FragmentActivity, uniView: UniView) : DialogEventListener

This class is the default implementation of DialogEventListener. Use this class to show the default dialog via UniView.setDialogEventListener and can override the functions to show customized dialog.

Constructors

Link copied to clipboard
constructor(activity: FragmentActivity, uniView: UniView)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onShowDialog(event: PaaSDialogEvent)

Handle the PaaSDialogEvent to show the default dialog.

Link copied to clipboard
open fun showCommonDialog(data: DialogEventWrapper, activity: FragmentActivity)

To show the default dialog for handling the com.kkstream.android.paas.player.common.event.PaasEvent

Link copied to clipboard
open fun showErrorDialog(data: UniErrorEvent, activity: FragmentActivity)

To show the default error dialog.

Link copied to clipboard
open fun showSelectedQualityErrorDialog(activity: FragmentActivity, uniView: UniView, errorMsgId: Int)

To show the default dialog when the selected quality not match with profile

Link copied to clipboard
open fun showSettingDialog(data: SettingDialogData, uniView: UniView, activity: FragmentActivity)

To show the default setting dialog.