Class PHPickerConfiguration

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class PHPickerConfiguration
    extends NSObject
    implements NSCopying
    A configuration for \c PHPickerViewController. API-Since: 14.0
    • Constructor Detail

      • PHPickerConfiguration

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static PHPickerConfiguration allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • 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()
      • filter

        @Nullable
        public @Nullable PHPickerFilter filter()
        Types of assets that can be shown. Default is \c nil. Setting \c filter to \c nil means all asset types can be shown. API-Since: 14.0
      • hash_static

        public static long hash_static()
      • init

        public PHPickerConfiguration init()
        Initializes a new configuration with the system photo library. This configuration never returns asset identifiers. API-Since: 14.0
        Overrides:
        init in class NSObject
      • initWithPhotoLibrary

        public PHPickerConfiguration initWithPhotoLibrary​(@NotNull
                                                          @NotNull PHPhotoLibrary photoLibrary)
        Initializes a new configuration with the \c photoLibrary the picker should use. API-Since: 14.0
      • 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)
      • preferredAssetRepresentationMode

        public long preferredAssetRepresentationMode()
        The preferred representation mode of selected assets. Default is \c PHPickerConfigurationAssetRepresentationModeAutomatic. Setting \c preferredAssetRepresentationMode to \c PHPickerConfigurationAssetRepresentationModeAutomatic means the best representation determined by the system will be used. API-Since: 14.0
      • resolveClassMethod

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

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

        public long selectionLimit()
        The maximum number of assets that can be selected. Default is 1. Setting \c selectionLimit to 0 means maximum supported by the system. API-Since: 14.0
      • setFilter

        public void setFilter​(@Nullable
                              @Nullable PHPickerFilter value)
        Types of assets that can be shown. Default is \c nil. Setting \c filter to \c nil means all asset types can be shown. API-Since: 14.0
      • setPreferredAssetRepresentationMode

        public void setPreferredAssetRepresentationMode​(long value)
        The preferred representation mode of selected assets. Default is \c PHPickerConfigurationAssetRepresentationModeAutomatic. Setting \c preferredAssetRepresentationMode to \c PHPickerConfigurationAssetRepresentationModeAutomatic means the best representation determined by the system will be used. API-Since: 14.0
      • setSelectionLimit

        public void setSelectionLimit​(long value)
        The maximum number of assets that can be selected. Default is 1. Setting \c selectionLimit to 0 means maximum supported by the system. API-Since: 14.0
      • 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()
      • preselectedAssetIdentifiers

        @NotNull
        public @NotNull NSArray<java.lang.String> preselectedAssetIdentifiers()
        Local identifiers of assets to be shown as selected when the picker is presented. Default is an empty array. \c preselectedAssetIdentifiers should be an empty array if \c selectionLimit is 1 or \c photoLibrary is not specified. Returned item providers for preselected assets are always empty. API-Since: 15.0
      • selection

        public long selection()
        The selection behavior of the picker. Default is \c PHPickerConfigurationSelectionDefault. API-Since: 15.0
      • setPreselectedAssetIdentifiers

        public void setPreselectedAssetIdentifiers​(@NotNull
                                                   @NotNull NSArray<java.lang.String> value)
        Local identifiers of assets to be shown as selected when the picker is presented. Default is an empty array. \c preselectedAssetIdentifiers should be an empty array if \c selectionLimit is 1 or \c photoLibrary is not specified. Returned item providers for preselected assets are always empty. API-Since: 15.0
      • setSelection

        public void setSelection​(long value)
        The selection behavior of the picker. Default is \c PHPickerConfigurationSelectionDefault. API-Since: 15.0
      • disabledCapabilities

        public long disabledCapabilities()
        Capabilities of the picker that should be disabled. Default is \c PHPickerCapabilitiesNone. API-Since: 17.0
      • edgesWithoutContentMargins

        public long edgesWithoutContentMargins()
        Edges of the picker that have no margin between the content and the edge (e.g. without bars in between). Default is \c NSDirectionalRectEdgeNone. API-Since: 17.0
      • mode

        public long mode()
        The mode of the picker. Default is \c PHPickerModeDefault. API-Since: 17.0
      • setDisabledCapabilities

        public void setDisabledCapabilities​(long value)
        Capabilities of the picker that should be disabled. Default is \c PHPickerCapabilitiesNone. API-Since: 17.0
      • setEdgesWithoutContentMargins

        public void setEdgesWithoutContentMargins​(long value)
        Edges of the picker that have no margin between the content and the edge (e.g. without bars in between). Default is \c NSDirectionalRectEdgeNone. API-Since: 17.0
      • setMode

        public void setMode​(long value)
        The mode of the picker. Default is \c PHPickerModeDefault. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.