PivotOffsets

class PivotOffsets


Holds the offsets needed for scrolling-with-offset.

Summary

Public constructors

PivotOffsets(
    parentFraction: @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float,
    childFraction: @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float
)

Public functions

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

Public properties

Float

defines the offset of the starting edge of the child from the pivot defined by parentFraction.

Float

defines the offset of the starting edge of the child element from the starting edge of the parent element.

Public constructors

PivotOffsets

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
PivotOffsets(
    parentFraction: @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float = 0.3f,
    childFraction: @FloatRange(from = 0.0, to = 1.0, fromInclusive = true, toInclusive = true) Float = 0.0f
)

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

childFraction

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val childFractionFloat

defines the offset of the starting edge of the child from the pivot defined by parentFraction. This value should be between 0 and 1.

parentFraction

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val parentFractionFloat

defines the offset of the starting edge of the child element from the starting edge of the parent element. This value should be between 0 and 1.