NutrientThemeController

Deprecated

The SDK re-reads its colors from state; a controller is no longer needed.

Drove runtime theme propagation. The SDK re-reads its colors from state (LocalConfiguration, LocalContext and the scheme set on the activity), and PdfActivity and PdfUiFragment handle setTheme() and configuration changes themselves, so an app no longer creates or invalidates a controller.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var key: Int

Monotonically increasing key bumped by invalidate; observe it to re-read theme values.

Functions

Link copied to clipboard

Signals that the underlying XML theme changed, forcing observers of key to recompose.