ripe / com.ripe.android.visual / Visual

Visual

open class Visual : Interactable

This is a superclass for visual representations of a Ripe instance.

Constructors

<init>

Visual(owner: Ripe, options: Map<String, Any>?)

This is a superclass for visual representations of a Ripe instance.

Properties

options

open val options: Map<String, Any>?

A map with options to configure the instance.

owner

open val owner: Ripe

The Ripe instance to be represented.

Inherited Functions

deinit

open fun deinit(): Unit

This method is called by the owner when it is deinitializing so that any necessary cleanup operations can be executed.

update

open fun update(state: Map<String, Any>): Unit

This method is called by the owner whenever its state changes so that the instance can update itself for the new state.

Inheritors

Image

class Image : Visual

Reactively updates the image of an ImageView whenever the state of its owner changes. An Image can be configured with the following options: