Google is committed to advancing racial equity for Black communities. See how.

SelectionRegistrar

interface SelectionRegistrar
androidx.ui.core.selection.SelectionRegistrar

An interface allowing a composable to subscribe and unsubscribe to selection changes.

Summary

Public methods
abstract Unit

When the Global Position of a subscribed Selectable changes, this method is called.

abstract Selectable
subscribe(selectable: Selectable)

Subscribe to SelectionContainer selection changes.

abstract Unit
unsubscribe(selectable: Selectable)

Unsubscribe from SelectionContainer selection changes.

Public methods

onPositionChange

abstract fun onPositionChange(): Unit

When the Global Position of a subscribed Selectable changes, this method is called.

subscribe

abstract fun subscribe(selectable: Selectable): Selectable

Subscribe to SelectionContainer selection changes.

unsubscribe

abstract fun unsubscribe(selectable: Selectable): Unit

Unsubscribe from SelectionContainer selection changes.