Package org.robovm.apple.uikit
Class NSLayoutConstraint
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.NSLayoutConstraint
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSLayoutConstraint extends NSObject
- Since:
- Available in iOS 6.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSLayoutConstraint.NSLayoutConstraintPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSLayoutConstraint()
protected
NSLayoutConstraint(NSObject.Handle h, long handle)
protected
NSLayoutConstraint(NSObject.SkipInit skipInit)
NSLayoutConstraint(NSObject view1, NSLayoutAttribute attr1, NSLayoutRelation relation, NSObject view2, NSLayoutAttribute attr2, double multiplier, double c)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSLayoutConstraint
public NSLayoutConstraint()
-
NSLayoutConstraint
protected NSLayoutConstraint(NSObject.Handle h, long handle)
-
NSLayoutConstraint
protected NSLayoutConstraint(NSObject.SkipInit skipInit)
-
NSLayoutConstraint
public NSLayoutConstraint(NSObject view1, NSLayoutAttribute attr1, NSLayoutRelation relation, NSObject view2, NSLayoutAttribute attr2, double multiplier, double c)
-
-
Method Detail
-
getPriority
public float getPriority()
-
setPriority
public void setPriority(float v)
-
shouldBeArchived
public boolean shouldBeArchived()
-
setShouldBeArchived
public void setShouldBeArchived(boolean v)
-
getFirstItem
public NSObject getFirstItem()
-
getFirstAttribute
public NSLayoutAttribute getFirstAttribute()
-
getSecondItem
public NSObject getSecondItem()
-
getSecondAttribute
public NSLayoutAttribute getSecondAttribute()
-
getFirstAnchor
public NSLayoutAnchor getFirstAnchor()
- Since:
- Available in iOS 10.0 and later.
-
getSecondAnchor
public NSLayoutAnchor getSecondAnchor()
- Since:
- Available in iOS 10.0 and later.
-
getRelation
public NSLayoutRelation getRelation()
-
getMultiplier
public double getMultiplier()
-
getConstant
public double getConstant()
-
setConstant
public void setConstant(double v)
-
isActive
public boolean isActive()
- Since:
- Available in iOS 8.0 and later.
-
setActive
public void setActive(boolean v)
- Since:
- Available in iOS 8.0 and later.
-
getIdentifier
public java.lang.String getIdentifier()
- Since:
- Available in iOS 7.0 and later.
-
setIdentifier
public void setIdentifier(java.lang.String v)
- Since:
- Available in iOS 7.0 and later.
-
createConstraints
public static NSArray<NSLayoutConstraint> createConstraints(java.lang.String format, NSLayoutFormatOptions opts, java.util.Map<java.lang.String,java.lang.Number> metrics, java.util.Map<java.lang.String,NSObjectProtocol> views)
-
create
protected static long create(NSObject view1, NSLayoutAttribute attr1, NSLayoutRelation relation, NSObject view2, NSLayoutAttribute attr2, double multiplier, double c)
-
activateConstraints
public static void activateConstraints(NSArray<NSLayoutConstraint> constraints)
- Since:
- Available in iOS 8.0 and later.
-
deactivateConstraints
public static void deactivateConstraints(NSArray<NSLayoutConstraint> constraints)
- Since:
- Available in iOS 8.0 and later.
-
-