Parallax.IntProperty
class Parallax.IntProperty : Property
IntProperty provide access to an index based integer type property inside Parallax
. The IntProperty typically represents UI element position inside Parallax
.
Summary
Constants |
|
---|---|
const Int |
UNKNOWN_AFTER = 2147483647 Property value is unknown and it's larger than |
const Int |
UNKNOWN_BEFORE = -2147483648 Property value is unknown and it's smaller than minimal value of Parallax. |
Public constructors |
---|
IntProperty(name: String!, index: Int) Constructor. |
Public functions |
|
---|---|
Parallax.PropertyMarkerValue! |
Create an |
Parallax.PropertyMarkerValue! |
atAbsolute(absoluteValue: Int) Creates an |
Parallax.PropertyMarkerValue! |
atFraction(fractionOfMaxValue: Float) Creates an |
Parallax.PropertyMarkerValue! |
atMax() Creates an |
Parallax.PropertyMarkerValue! |
atMin() Creates an |
Int! |
|
Int |
getIndex() |
Int |
Fast version of get() method that returns a primitive int value of the Property. |
Unit |
|
Unit |
Fast version of set() method that takes a primitive int value into the Property. |
Inherited functions |
---|
Constants
UNKNOWN_AFTER
const val UNKNOWN_AFTER = 2147483647: Int
Property value is unknown and it's larger than getMaxValue
. For example if a child is not created and after the last visible child of RecyclerView.
UNKNOWN_BEFORE
const val UNKNOWN_BEFORE = -2147483648: Int
Property value is unknown and it's smaller than minimal value of Parallax. For example if a child is not created and before the first visible child of RecyclerView.
Public constructors
Public functions
at
fun at(offsetValue: Int, fractionOfMaxParentVisibleSize: Float): Parallax.PropertyMarkerValue!
Create an PropertyMarkerValue
object by multiplying the fraction with getMaxValue
and adding offsetValue to it.
Parameters | |
---|---|
offsetValue: Int |
An offset integer value to be added to marker value. |
fractionOfMaxParentVisibleSize: Float |
0 to 1 fraction to multiply with |
Returns | |
---|---|
Parallax.PropertyMarkerValue! |
A new |
atAbsolute
fun atAbsolute(absoluteValue: Int): Parallax.PropertyMarkerValue!
Creates an PropertyMarkerValue
object for the absolute marker value.
Parameters | |
---|---|
absoluteValue: Int |
The integer marker value. |
Returns | |
---|---|
Parallax.PropertyMarkerValue! |
A new |
atFraction
fun atFraction(fractionOfMaxValue: Float): Parallax.PropertyMarkerValue!
Creates an PropertyMarkerValue
object for a fraction of getMaxValue
.
Parameters | |
---|---|
fractionOfMaxValue: Float |
0 to 1 fraction to multiply with |
Returns | |
---|---|
Parallax.PropertyMarkerValue! |
A new |
atMax
fun atMax(): Parallax.PropertyMarkerValue!
Creates an PropertyMarkerValue
object for the marker value representing getMaxValue
.
Returns | |
---|---|
Parallax.PropertyMarkerValue! |
A new |
atMin
fun atMin(): Parallax.PropertyMarkerValue!
Creates an PropertyMarkerValue
object for the marker value representing 0.
Returns | |
---|---|
Parallax.PropertyMarkerValue! |
A new |