# TargetNode

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/behavior/TargetNode.kt+class:androidx.ink.brush.behavior.TargetNode) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***

Common/All
- Cmn

  ```
  class TargetNode : TerminalNode
  ```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) |||
|   | ↳ | [androidx.ink.brush.behavior.TerminalNode](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TerminalNode) ||
|   |   | ↳ | [androidx.ink.brush.behavior.TargetNode](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode) |

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TerminalNode` that consumes a single input to affect a scalar brush tip property.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode.Target` List of scalar tip properties that can be modified by a `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushBehavior`. |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#TargetNode(androidx.ink.brush.behavior.TargetNode.Target,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)( target: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode.Target, targetModifierRangeStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, targetModifierRangeEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, input: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode )` Creates a `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode` that consumes a single input to affect a scalar brush tip property. | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#input()` The input node that produces the value used to affect the target. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode.Target` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#target()` The brush tip property to affect. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#targetModifierRangeEnd()` The end of the range of the input value that should affect the target property. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#targetModifierRangeStart()` The start of the range of the input value that should affect the target property. | Cmn |

### Inherited functions

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node#calculateMinimumRequiredVersion()()`

Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node`.
Cmn

### Inherited properties

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode>` `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node#inputs()`

The ordered list of inputs that this node directly depends on.
Cmn

## Public constructors

### TargetNode

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
TargetNode(
    target: TargetNode.Target,
    targetModifierRangeStart: Float,
    targetModifierRangeEnd: Float,
    input: ValueNode
)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode` that consumes a single input to affect a scalar brush tip property.

| Parameters |
|---|---|
| `target: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode.Target` | the brush tip property to affect |
| `targetModifierRangeStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | start of the range of the input value that should affect the target property. Must be finite and distinct from `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#(androidx.ink.brush.behavior.TargetNode.Target,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `targetModifierRangeEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | end of the range of the input value that should affect the target property. Must be finite and distinct from `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/TargetNode#(androidx.ink.brush.behavior.TargetNode.Target,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `input: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | input node that produces the value used to affect the target |

## Public functions

### equals

Cmn

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

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### input

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val input: ValueNode
```

The input node that produces the value used to affect the target.

### target

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val target: TargetNode.Target
```

The brush tip property to affect.

### targetModifierRangeEnd

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val targetModifierRangeEnd: Float
```

The end of the range of the input value that should affect the target property.

### targetModifierRangeStart

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val targetModifierRangeStart: Float
```

The start of the range of the input value that should affect the target property.