Package apple.uikit

Class UIHoverStyle

  • All Implemented Interfaces:
    NSCopying, NSObject
    Direct Known Subclasses:
    UIPointerStyle

    public class UIHoverStyle
    extends NSObject
    implements NSCopying
    The hover style to apply to a view, including an effect and a shape to use for displaying that effect. API-Since: 17.0
    • Constructor Detail

      • UIHoverStyle

        protected UIHoverStyle​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIHoverStyle allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticStyle

        @NotNull
        public static @NotNull UIHoverStyle automaticStyle()
        Creates a hover style with the default shape and a `UIHoverAutomaticEffect`.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • effect

        @NotNull
        public @NotNull UIHoverEffect effect()
        The effect to apply to the view with this style. Use `UIHoverAutomaticEffect` to apply a system-default effect to the view.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isEnabled

        public boolean isEnabled()
        Whether the effect to apply to the view with this style is enabled. Use this property to temporarily disable a view's hover effect without removing it from the view entirely.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setEffect

        public void setEffect​(@NotNull
                              @NotNull UIHoverEffect value)
        The effect to apply to the view with this style. Use `UIHoverAutomaticEffect` to apply a system-default effect to the view.
      • setEnabled

        public void setEnabled​(boolean value)
        Whether the effect to apply to the view with this style is enabled. Use this property to temporarily disable a view's hover effect without removing it from the view entirely.
      • setShape

        public void setShape​(@Nullable
                             @Nullable UIShape value)
        The shape to use for the hover effect. If a `nil` shape is used, a system-default shape will be chosen based on the view.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • shape

        @Nullable
        public @Nullable UIShape shape()
        The shape to use for the hover effect. If a `nil` shape is used, a system-default shape will be chosen based on the view.
      • styleWithEffectShape

        public static UIHoverStyle styleWithEffectShape​(@NotNull
                                                        @NotNull UIHoverEffect effect,
                                                        @Nullable
                                                        @Nullable UIShape shape)
        Creates a hover style with the provided effect and shape.
      • styleWithShape

        public static UIHoverStyle styleWithShape​(@Nullable
                                                  @Nullable UIShape shape)
        Creates a hover style with the provided shape and a `UIHoverAutomaticEffect`.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()