Class Barrier
- java.lang.Object
-
- androidx.constraintlayout.core.dsl.Helper
-
- androidx.constraintlayout.core.dsl.Barrier
-
public class Barrier extends Helper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class androidx.constraintlayout.core.dsl.Helper
Helper.HelperType, Helper.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BarrieraddReference(Ref ref)Add a new referenceBarrieraddReference(java.lang.String ref)Add a new referenceConstraint.SidegetDirection()Get the direction of the BarrierintgetMargin()Get the margin of the Barrierjava.lang.StringreferencesToString()Convert references into a String representationvoidsetDirection(Constraint.Side direction)Set the direction of the BarriervoidsetMargin(int margin)Set the margin of the Barrier
-
-
-
Method Detail
-
getDirection
public Constraint.Side getDirection()
Get the direction of the Barrier- Returns:
- direction
-
setDirection
public void setDirection(Constraint.Side direction)
Set the direction of the Barrier- Parameters:
direction-
-
getMargin
public int getMargin()
Get the margin of the Barrier- Returns:
- margin
-
setMargin
public void setMargin(int margin)
Set the margin of the Barrier- Parameters:
margin-
-
referencesToString
public java.lang.String referencesToString()
Convert references into a String representation- Returns:
- a String representation of references
-
addReference
public Barrier addReference(Ref ref)
Add a new reference- Parameters:
ref- reference- Returns:
- Barrier
-
addReference
public Barrier addReference(java.lang.String ref)
Add a new reference- Parameters:
ref- reference in a String representation- Returns:
- Chain
-
-