AgoraButton

class AgoraButton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : AppCompatImageView

A button to fit the style of builtin Agora VideoUIKit Buttons

Parameters

context

the context for the application.

attrs

the attribute set for the button.

defStyleAttr

An attribute in the current theme that contains a reference to a style resource that supplies defaults values for the StyledAttributes. Can be 0 to not look for defaults.

Constructors

Link copied to clipboard
fun AgoraButton(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Creates a new button.

Properties

Link copied to clipboard
var clickAction: (button: AgoraButton) -> Any?? = null

The action to be conducted when the button is tapped.