CarouselParallaxScrollEffectItemInfo


Visual effect values calculated for an item at a specific index in a scrollable container.

Summary

Public constructors

CarouselParallaxScrollEffectItemInfo(
    maskStart: Float,
    maskEnd: Float,
    parallax: Float,
    maskProgress: @FloatRange(from = 0.0, to = 1.0) Float
)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Float

The offset in pixels from the start of the item's bounds to the end of the visible mask.

Cmn
Float

The progress of the mask effect from 0f (fully unmasked) to 1f (maximally masked).

Cmn
Float

The offset in pixels from the start of the item's bounds by which it is masked.

Cmn
Float

The distance in pixels to translate the item's content in the main scrolling axis.

Cmn
Float

The current size of this item in the main scrolling axis taking into account any masking from maskStart and maskEnd.

Cmn

Public constructors

CarouselParallaxScrollEffectItemInfo

CarouselParallaxScrollEffectItemInfo(
    maskStart: Float,
    maskEnd: Float,
    parallax: Float,
    maskProgress: @FloatRange(from = 0.0, to = 1.0) Float
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

maskEnd

val maskEndFloat

The offset in pixels from the start of the item's bounds to the end of the visible mask.

maskProgress

val maskProgressFloat

The progress of the mask effect from 0f (fully unmasked) to 1f (maximally masked).

maskStart

val maskStartFloat

The offset in pixels from the start of the item's bounds by which it is masked.

parallax

val parallaxFloat

The distance in pixels to translate the item's content in the main scrolling axis.

size

val sizeFloat

The current size of this item in the main scrolling axis taking into account any masking from maskStart and maskEnd.