# 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)

*** ** * ** ***


```
public class Parallax.IntProperty extends Property<Parallax, Integer>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [android.util.Property](https://developer.android.com/reference/android/util/Property.html)\<[Parallax](https://developer.android.com/reference/androidx/leanback/widget/Parallax), [Integer](https://developer.android.com/reference/java/lang/Integer.html)\> ||
|   | ↳ | [androidx.leanback.widget.Parallax.IntProperty](https://developer.android.com/reference/androidx/leanback/widget/Parallax.IntProperty) |

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

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

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/leanback/widget/Parallax.IntProperty#UNKNOWN_AFTER() = 2147483647` Property value is unknown and it's larger than `https://developer.android.com/reference/androidx/leanback/widget/Parallax#getMaxValue()`. |
| `static final int` | `https://developer.android.com/reference/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/androidx/leanback/widget/Parallax.IntProperty#IntProperty(java.lang.String,int)(https://developer.android.com/reference/java/lang/String.html name, int index)` Constructor. |

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

### Inherited methods

From [android.util.Property](https://developer.android.com/reference/android/util/Property.html) `https://developer.android.com/reference/java/lang/String.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()()` `boolean` `https://developer.android.com/reference/android/util/Property.html#isReadOnly()()` `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)(https://developer.android.com/reference/java/lang/Class.html<T> hostType, https://developer.android.com/reference/java/lang/Class.html<V> valueType, https://developer.android.com/reference/java/lang/String.html name)`

## Constants

### UNKNOWN_AFTER

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

```
public static final int UNKNOWN_AFTER = 2147483647
```

Property value is unknown and it's larger than `https://developer.android.com/reference/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)

```
public static final int UNKNOWN_BEFORE = -2147483648
```

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)

```
public IntProperty(String name, int index)
```

Constructor.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html name` | Name of this Property. |
| `int index` | Index of this Property inside `https://developer.android.com/reference/androidx/leanback/widget/Parallax`. |

## Public methods

### at

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

```
public final Parallax.PropertyMarkerValue at(int offsetValue, float fractionOfMaxParentVisibleSize)
```

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

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

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

### atAbsolute

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

```
public final Parallax.PropertyMarkerValue atAbsolute(int absoluteValue)
```

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

| Parameters |
|---|---|
| `int absoluteValue` | The integer marker value. |

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

### atFraction

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

```
public final Parallax.PropertyMarkerValue atFraction(float fractionOfMaxValue)
```

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

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

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

### atMax

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

```
public final Parallax.PropertyMarkerValue atMax()
```

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

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

### atMin

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

```
public final Parallax.PropertyMarkerValue atMin()
```

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

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

### get

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

```
public final Integer get(Parallax object)
```

### getIndex

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

```
public final int getIndex()
```

| Returns |
|---|---|
| `int` | Index of this Property in `https://developer.android.com/reference/androidx/leanback/widget/Parallax`. |

### getValue

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

```
public final int getValue(Parallax object)
```

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

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

| Returns |
|---|---|
| `int` | Int value of the Property. |

### set

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

```
public final void set(Parallax object, Integer value)
```

### setValue

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

```
public final void setValue(Parallax object, int value)
```

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

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/leanback/widget/Parallax object` | The Parallax object that owns this Property. |
| `int value` | Int value of the Property. |