class Barrier : Helper


Summary

Public constructors

Barrier(name: String!)
Barrier(name: String!, config: String!)

Public functions

Barrier!

Add a new reference

Barrier!

Add a new reference

Constraint.Side!

Get the direction of the Barrier

Int

Get the margin of the Barrier

String!

Convert references into a String representation

Unit

Set the direction of the Barrier

Unit
setMargin(margin: Int)

Set the margin of the Barrier

Public constructors

Barrier

Added in 1.1.0
Barrier(name: String!)

Barrier

Added in 1.1.0
Barrier(name: String!, config: String!)

Public functions

addReference

Added in 1.1.0
fun addReference(ref: Ref!): Barrier!

Add a new reference

Parameters
ref: Ref!

reference

Returns
Barrier!

Barrier

addReference

Added in 1.1.0
fun addReference(ref: String!): Barrier!

Add a new reference

Parameters
ref: String!

reference in a String representation

Returns
Barrier!

Chain

getDirection

Added in 1.1.0
fun getDirection(): Constraint.Side!

Get the direction of the Barrier

Returns
Constraint.Side!

direction

getMargin

Added in 1.1.0
fun getMargin(): Int

Get the margin of the Barrier

Returns
Int

margin

referencesToString

Added in 1.1.0
fun referencesToString(): String!

Convert references into a String representation

Returns
String!

a String representation of references

setDirection

Added in 1.1.0
fun setDirection(direction: Constraint.Side!): Unit

Set the direction of the Barrier

Parameters
direction: Constraint.Side!

setMargin

Added in 1.1.0
fun setMargin(margin: Int): Unit

Set the margin of the Barrier

Parameters
margin: Int