SourceNode



A ValueNode that gets data from the stroke input batch.

Summary

Nested types

List of input properties along with their units that can act as sources for a androidx.ink.brush.BrushBehavior.

Public constructors

SourceNode(
    source: SourceNode.Source,
    sourceValueRangeStart: Float,
    sourceValueRangeEnd: Float,
    sourceOutOfRangeBehavior: OutOfRange
)

Creates a SourceNode that gets data from the stroke inputs.

Cmn

Public functions

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

Public properties

SourceNode.Source

The property of the data to get values from.

Cmn
OutOfRange

The behavior to use if the source produces a value outside the specified range.

Cmn
Float

The end of the range of values that the source can produce.

Cmn
Float

The start of the range of values that the source can produce.

Cmn

Inherited properties

From androidx.ink.brush.behavior.Node
List<ValueNode>

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

Cmn

Public constructors

SourceNode

SourceNode(
    source: SourceNode.Source,
    sourceValueRangeStart: Float,
    sourceValueRangeEnd: Float,
    sourceOutOfRangeBehavior: OutOfRange = OutOfRange.CLAMP
)

Creates a SourceNode that gets data from the stroke inputs.

Parameters
source: SourceNode.Source

the property of the data to get values from

sourceValueRangeStart: Float

the start of the range of values that the source can produce

sourceValueRangeEnd: Float

the end of the range of values that the source can produce

sourceOutOfRangeBehavior: OutOfRange = OutOfRange.CLAMP

the behavior to use if the source produces a value outside the specified range

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

source

val sourceSourceNode.Source

The property of the data to get values from.

sourceOutOfRangeBehavior

val sourceOutOfRangeBehaviorOutOfRange

The behavior to use if the source produces a value outside the specified range.

sourceValueRangeEnd

val sourceValueRangeEndFloat

The end of the range of values that the source can produce.

sourceValueRangeStart

val sourceValueRangeStartFloat

The start of the range of values that the source can produce.