Package apple.uikit.protocol
Interface UITraitDefinition
-
- All Known Subinterfaces:
UICGFloatTraitDefinition,UINSIntegerTraitDefinition,UIObjectTraitDefinition
- All Known Implementing Classes:
UITraitAccessibilityContrast,UITraitActiveAppearance,UITraitDisplayGamut,UITraitDisplayScale,UITraitForceTouchCapability,UITraitHorizontalSizeClass,UITraitImageDynamicRange,UITraitLayoutDirection,UITraitLegibilityWeight,UITraitPreferredContentSizeCategory,UITraitSceneCaptureState,UITraitToolbarItemPresentationSize,UITraitTypesettingLanguage,UITraitUserInterfaceIdiom,UITraitUserInterfaceLevel,UITraitUserInterfaceStyle,UITraitVerticalSizeClass
public interface UITraitDefinitionAPI-Since: 17.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean_affectsColorAppearance()Whether the trait is used to resolve dynamic colors (or images), and changes to the trait should automatically trigger views using dynamic colors/images to update their appearance.default @NotNull java.lang.String_identifier()A unique identifier string for the trait (reverse-DNS format recommended).default @NotNull java.lang.String_name()A short human-readable name for the trait, e.g.
-
-
-
Method Detail
-
_affectsColorAppearance
default boolean _affectsColorAppearance()
Whether the trait is used to resolve dynamic colors (or images), and changes to the trait should automatically trigger views using dynamic colors/images to update their appearance. Default is NO.
-
_identifier
@NotNull default @NotNull java.lang.String _identifier()
A unique identifier string for the trait (reverse-DNS format recommended). Allows the trait to be encoded/decoded, and to map both a Swift and Objective-C trait to the same data.
-
_name
@NotNull default @NotNull java.lang.String _name()
A short human-readable name for the trait, e.g. for printing and debugging output. By default, the trait's class name is used when not implemented.
-
-