Optional
maxDetermines if there is a fixed distance to ending edge (bottom for vertical, right for horizontal).
Optional
minDetermines if there is a fixed distance to starting edge (top for vertical, left for horizontal).
Sizing mode of the layer. Possible values are defined in LayerConstraint.SIZING_MODE
Static
ALLOWED_Static
SIZING_Static
fromCreates a LayerConstraint instance from a JSON string
JSON string representing a layer constraint
A new LayerConstraint instance
An interface to represent the constraint of Layer