Skip to content

//deferred-resources/com.backbase.deferredresources.color/DeferredColorWithAlpha

DeferredColorWithAlpha

[androidJvm] class DeferredColorWithAlpha(base: DeferredColor, @IntRange(from = 0.toLong(), to = 255.toLong())alpha: Int) : ParcelableDeferredColor

A DeferredColor that always resolves with a specific alpha value, ignoring the base color's alpha.

This class implements android.os.Parcelable. It will throw at runtime if base cannot be marshalled.

Constructors

DeferredColorWithAlpha [androidJvm] fun DeferredColorWithAlpha(base: DeferredColor, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble())alpha: Float)Convenience constructor to specify a float alpha value to apply on the base color.
DeferredColorWithAlpha [androidJvm] fun DeferredColorWithAlpha(base: DeferredColor, @IntRange(from = 0.toLong(), to = 255.toLong())alpha: Int)

Functions

Name Summary
describeContents [androidJvm]
Content
abstract fun describeContents(): Int


resolve [androidJvm]
Content
@ColorInt()

open override fun resolve(context: Context): Int
More info
Using the given context, resolve the base color with the specified alpha applied.


resolveToStateList [androidJvm]
Content
open override fun resolveToStateList(context: Context): ColorStateList
More info
Resolve the color to a ColorStateList.


writeToParcel [androidJvm]
Content
abstract fun writeToParcel(p0: Parcel, p1: Int)