Package 

Class ViewModelColorProperty

  • All Implemented Interfaces:
    app.rive.runtime.kotlin.core.RefCount

    
    public final class ViewModelColorProperty
    extends ViewModelProperty<Int>
                        

    A color property of a ViewModelInstance. Values are represented as integers in 0xAARRGGBB format.

    The Android Color class is not available prior to API 26, and because this library has minSDK 21, we use integers. If you are using API 26+, you can convert to Color with Color.valueOf and to an Int with Color.toArgb. If you are supporting prior to API 26, you can still use Color.argb to handle the bit manipulations.