RailAction

class RailAction(@DrawableRes val iconRes: Int, val label: String? = null, val isActive: Boolean = false, val contentDescription: String? = null, val onClick: () -> Unit)

One action on the vertical feed right-side rail — the host's like/share/comment buttons. Unlike com.ogplayer.ui.CustomAction (icon-only, top-end row of the standard player), a rail action carries an optional label (usually a count) and an isActive state (e.g. already-liked). State changes flow by re-supplying the items list.

Constructors

Link copied to clipboard
constructor(@DrawableRes iconRes: Int, label: String? = null, isActive: Boolean = false, contentDescription: String? = null, onClick: () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val isActive: Boolean = false
Link copied to clipboard
val label: String? = null
Link copied to clipboard
val onClick: () -> Unit