ClipCommandRegistry

Commands scoped to one clip. Offer them wherever a clip is presented, asking appliesTo first: false hides the command for that clip entirely, while true with isEnabled false means show it greyed out.

AddinCommandInfo.enabled is always true on entries from here; a clip command's enablement depends on the target, so isEnabled is the real answer.

Inheritors

AndroidClipCommandRegistry
JsClipCommandRegistry
JvmClipCommandRegistry
NativeClipCommandRegistry
WasmJsClipCommandRegistry

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun appliesTo(index: Int, target: ClipCommandTarget): Boolean
Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun invoke(index: Int, target: ClipCommandTarget): Boolean
Link copied to clipboard
abstract fun isEnabled(index: Int, target: ClipCommandTarget): Boolean