Constraint

constructor(target: ConstraintTarget? = null, targetAttribute: ConstraintAttribute, relation: ConstraintRelation, source: ConstraintTarget? = null, sourceAttribute: ConstraintAttribute, multiplier: <Error class: unknown class>, constant: <Error class: unknown class>, strength: <Error class: unknown class>)

Creates a new constraint representing a relation between a layout attribute on a source and a layout attribute on a target.

Return

the newly created constraint

Parameters

target

the target of the constraint

targetAttribute

the attribute of target to be set

relation

the relation equivalence between target_attribute and source_attribute

source

the source of the constraint

sourceAttribute

the attribute of source to be read

multiplier

a multiplication factor to be applied to source_attribute

constant

a constant factor to be added to source_attribute

strength

the strength of the constraint


constructor(target: ConstraintTarget? = null, targetAttribute: ConstraintAttribute, relation: ConstraintRelation, constant: <Error class: unknown class>, strength: <Error class: unknown class>)

Creates a new constraint representing a relation between a layout attribute on a target and a constant value.

Return

the newly created constraint

Parameters

target

a the target of the constraint

targetAttribute

the attribute of target to be set

relation

the relation equivalence between target_attribute and constant

constant

a constant factor to be set on target_attribute

strength

the strength of the constraint


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)