Package org.robovm.apple.uikit
Class UITraitCollection
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UITraitCollection
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class UITraitCollection extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UITraitCollection.UITraitCollectionPtr
-
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 UITraitCollection()
UITraitCollection(NSCoder decoder)
protected
UITraitCollection(NSObject.Handle h, long handle)
protected
UITraitCollection(NSObject.SkipInit skipInit)
UITraitCollection(UIContentSizeCategory preferredContentSizeCategory)
UITraitCollection(UIDisplayGamut displayGamut)
UITraitCollection(UIForceTouchCapability capability)
UITraitCollection(UITraitEnvironmentLayoutDirection layoutDirection)
UITraitCollection(UIUserInterfaceStyle userInterfaceStyle)
-
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
-
UITraitCollection
public UITraitCollection()
-
UITraitCollection
protected UITraitCollection(NSObject.Handle h, long handle)
-
UITraitCollection
protected UITraitCollection(NSObject.SkipInit skipInit)
-
UITraitCollection
public UITraitCollection(NSCoder decoder)
-
UITraitCollection
public UITraitCollection(UIUserInterfaceStyle userInterfaceStyle)
- Since:
- Available in iOS 12.0 and later.
-
UITraitCollection
public UITraitCollection(UITraitEnvironmentLayoutDirection layoutDirection)
- Since:
- Available in iOS 10.0 and later.
-
UITraitCollection
public UITraitCollection(UIForceTouchCapability capability)
- Since:
- Available in iOS 9.0 and later.
-
UITraitCollection
public UITraitCollection(UIContentSizeCategory preferredContentSizeCategory)
- Since:
- Available in iOS 10.0 and later.
-
UITraitCollection
public UITraitCollection(UIDisplayGamut displayGamut)
- Since:
- Available in iOS 10.0 and later.
-
-
Method Detail
-
getUserInterfaceIdiom
public UIUserInterfaceIdiom getUserInterfaceIdiom()
-
getUserInterfaceStyle
public UIUserInterfaceStyle getUserInterfaceStyle()
- Since:
- Available in iOS 12.0 and later.
-
getLayoutDirection
public UITraitEnvironmentLayoutDirection getLayoutDirection()
- Since:
- Available in iOS 10.0 and later.
-
getDisplayScale
public double getDisplayScale()
-
getHorizontalSizeClass
public UIUserInterfaceSizeClass getHorizontalSizeClass()
-
getVerticalSizeClass
public UIUserInterfaceSizeClass getVerticalSizeClass()
-
getForceTouchCapability
public UIForceTouchCapability getForceTouchCapability()
- Since:
- Available in iOS 9.0 and later.
-
getPreferredContentSizeCategory
public java.lang.String getPreferredContentSizeCategory()
- Since:
- Available in iOS 10.0 and later.
-
getDisplayGamut
public UIDisplayGamut getDisplayGamut()
- Since:
- Available in iOS 10.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
init
protected long init(NSCoder decoder)
-
containsTraits
public boolean containsTraits(UITraitCollection trait)
-
createWithTraits
public static UITraitCollection createWithTraits(NSArray<UITraitCollection> traitCollections)
-
createWithUserInterfaceIdiom
public static UITraitCollection createWithUserInterfaceIdiom(UIUserInterfaceIdiom idiom)
-
create
protected static long create(UIUserInterfaceStyle userInterfaceStyle)
- Since:
- Available in iOS 12.0 and later.
-
create
protected static long create(UITraitEnvironmentLayoutDirection layoutDirection)
- Since:
- Available in iOS 10.0 and later.
-
createWithDisplayScale
public static UITraitCollection createWithDisplayScale(double scale)
-
createWithHorizontalSizeClass
public static UITraitCollection createWithHorizontalSizeClass(UIUserInterfaceSizeClass horizontalSizeClass)
-
createWithVerticalSizeClass
public static UITraitCollection createWithVerticalSizeClass(UIUserInterfaceSizeClass verticalSizeClass)
-
create
protected static long create(UIForceTouchCapability capability)
- Since:
- Available in iOS 9.0 and later.
-
create
protected static long create(UIContentSizeCategory preferredContentSizeCategory)
- Since:
- Available in iOS 10.0 and later.
-
create
protected static long create(UIDisplayGamut displayGamut)
- Since:
- Available in iOS 10.0 and later.
-
-