# Parallax.IntProperty

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/Parallax.java+class:androidx.leanback.widget.Parallax.IntProperty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
class Parallax.IntProperty : Property<Parallax!, Int!>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [android.util.Property](https://developer.android.com/reference/android/util/Property.html)\<[Parallax](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax)!, [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)!\> ||
|   | ↳ | [androidx.leanback.widget.Parallax.IntProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty) |

Known direct subclasses [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty` | Subclass of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty`. |

*** ** * ** ***

IntProperty provide access to an index based integer type property inside `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax`. The IntProperty typically represents UI element position inside `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax`.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#UNKNOWN_AFTER() = 2147483647` Property value is unknown and it's larger than `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#UNKNOWN_BEFORE() = -2147483648` Property value is unknown and it's smaller than minimal value of Parallax. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#IntProperty(java.lang.String,int)(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Constructor. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#at(int,float)(offsetValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fractionOfMaxParentVisibleSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Create an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object by multiplying the fraction with `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()` and adding offsetValue to it. |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atAbsolute(int)(absoluteValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for the absolute marker value. |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atFraction(float)(fractionOfMaxValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for a fraction of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()`. |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atMax()()` Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for the marker value representing `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()`. |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atMin()()` Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for the marker value representing 0. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#get(androidx.leanback.widget.Parallax)(object: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#getIndex()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#getValue(androidx.leanback.widget.Parallax)(object: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax!)` Fast version of get() method that returns a primitive int value of the Property. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#set(androidx.leanback.widget.Parallax,java.lang.Integer)(object: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#setValue(androidx.leanback.widget.Parallax,int)(object: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Fast version of set() method that takes a primitive int value into the Property. |

### Inherited functions

From [android.util.Property](https://developer.android.com/reference/android/util/Property.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/android/util/Property.html#getName()()` `https://developer.android.com/reference/java/lang/Class.html<V!>!` `https://developer.android.com/reference/android/util/Property.html#getType()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/android/util/Property.html#isReadOnly()()` `java-static https://developer.android.com/reference/android/util/Property.html<T!, V!>!` `<T, V> https://developer.android.com/reference/android/util/Property.html#of(java.lang.Class&lt;T&gt;, java.lang.Class&lt;V&gt;, java.lang.String)(hostType: https://developer.android.com/reference/java/lang/Class.html<T!>!, valueType: https://developer.android.com/reference/java/lang/Class.html<V!>!, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

## Constants

### UNKNOWN_AFTER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
const val UNKNOWN_AFTER = 2147483647: Int
```

Property value is unknown and it's larger than `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()`. For example if a child is not created and after the last visible child of RecyclerView.

### UNKNOWN_BEFORE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
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

### IntProperty

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
IntProperty(name: String!, index: Int)
```

Constructor.

| Parameters |
|---|---|
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | Name of this Property. |
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Index of this Property inside `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax`. |

## Public functions

### at

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun at(offsetValue: Int, fractionOfMaxParentVisibleSize: Float): Parallax.PropertyMarkerValue!
```

Create an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object by multiplying the fraction with `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()` and adding offsetValue to it.

| Parameters |
|---|---|
| `offsetValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | An offset integer value to be added to marker value. |
| `fractionOfMaxParentVisibleSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | 0 to 1 fraction to multiply with `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()` for the marker value. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | A new `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object. |

### atAbsolute

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun atAbsolute(absoluteValue: Int): Parallax.PropertyMarkerValue!
```

Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for the absolute marker value.

| Parameters |
|---|---|
| `absoluteValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The integer marker value. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | A new `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object. |

### atFraction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun atFraction(fractionOfMaxValue: Float): Parallax.PropertyMarkerValue!
```

Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for a fraction of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()`.

| Parameters |
|---|---|
| `fractionOfMaxValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | 0 to 1 fraction to multiply with `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()` for the marker value. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | A new `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object. |

### atMax

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun atMax(): Parallax.PropertyMarkerValue!
```

Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for the marker value representing `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | A new `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object. |

### atMin

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun atMin(): Parallax.PropertyMarkerValue!
```

Creates an `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object for the marker value representing 0.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue!` | A new `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue` object. |

### get

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun get(object: Parallax!): Int!
```

### getIndex

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun getIndex(): Int
```

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Index of this Property in `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax`. |

### getValue

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun getValue(object: Parallax!): Int
```

Fast version of get() method that returns a primitive int value of the Property.

| Parameters |
|---|---|
| `object: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax!` | The Parallax object that owns this Property. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Int value of the Property. |

### set

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun set(object: Parallax!, value: Int!): Unit
```

### setValue

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
fun setValue(object: Parallax!, value: Int): Unit
```

Fast version of set() method that takes a primitive int value into the Property.

| Parameters |
|---|---|
| `object: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax!` | The Parallax object that owns this Property. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Int value of the Property. |