Package apple.uikit

Class UISheetPresentationControllerDetent

  • All Implemented Interfaces:
    NSObject

    public class UISheetPresentationControllerDetent
    extends NSObject
    API-Since: 15.0
    • Constructor Detail

      • UISheetPresentationControllerDetent

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • debugDescription_static

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

        public static java.lang.String description_static()
      • 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)
      • 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)
      • mediumDetent

        @NotNull
        public static @NotNull UISheetPresentationControllerDetent mediumDetent()
        A system detent for a sheet that is approximately half the height of the screen, and is inactive in compact height.
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • customDetentWithIdentifierResolver

        @NotNull
        public static @NotNull UISheetPresentationControllerDetent customDetentWithIdentifierResolver​(@Nullable
                                                                                                      @Nullable java.lang.String identifier,
                                                                                                      @NotNull
                                                                                                      @NotNull UISheetPresentationControllerDetent.Block_customDetentWithIdentifierResolver resolver)
        A custom detent that may compute a value based on the properties of the passed in context. If the detent needs to be referred to from other API on the sheet, such as `selectedDetentIdentifier`, specify an identifier for the detent. The identifier of each custom detent used by a sheet should be unique. If no identifier is specified, a random one will be generated. The value returned from the resolutionContextBlock is a height within the safe area of the sheet. For example, returning 200 will result in a detent where the height of the sheet is 200 + safeAreaInsets.bottom when edge-attached, and just 200 when floating. Return nil if the detent should be inactive based on the passed in context. If the block depends on any external inputs, call `invalidateDetents` on the sheet when the external inputs change. Do not set any properties on UISheetPresentationController during the execution of this block. API-Since: 16.0
      • identifier

        @NotNull
        public @NotNull java.lang.String identifier()
        The identifier of this detent. API-Since: 16.0
      • resolvedValueInContext

        public double resolvedValueInContext​(@NotNull
                                             @NotNull UISheetPresentationControllerDetentResolutionContext context)
        Resolves a detent to its value. Returns UISheetPresentationControllerDetentInactive if the detent is inactive in the provided context. This may be used to get the values of the system medium and large detents, or the value of a custom detent. This is intended to be used inside `customDetentWithIdentifier:resolver:` as a way to construct a custom detent based on the values of known detents. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.