Package apple.photos

Class PHAssetCollection

    • Constructor Detail

      • PHAssetCollection

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

        @NotNull
        public static @NotNull PHFetchResult<? extends PHAssetCollection> fetchAssetCollectionsContainingAssetWithTypeOptions​(@NotNull
                                                                                                                              @NotNull PHAsset asset,
                                                                                                                              long type,
                                                                                                                              @Nullable
                                                                                                                              @Nullable PHFetchOptions options)
        Smart Albums are not supported, only Albums and Moments API-Since: 8.0
      • fetchAssetCollectionsWithALAssetGroupURLsOptions

        @NotNull
        @Deprecated
        public static @NotNull PHFetchResult<? extends PHAssetCollection> fetchAssetCollectionsWithALAssetGroupURLsOptions​(@NotNull
                                                                                                                           @NotNull NSArray<? extends NSURL> assetGroupURLs,
                                                                                                                           @Nullable
                                                                                                                           @Nullable PHFetchOptions options)
        Deprecated.
        assetGroupURLs are URLs retrieved from ALAssetGroup's ALAssetsGroupPropertyURL API-Since: 8.0 Deprecated-Since: 16.0 Deprecated-Message: Will be removed in a future release
      • fetchAssetCollectionsWithLocalIdentifiersOptions

        @NotNull
        public static @NotNull PHFetchResult<? extends PHAssetCollection> fetchAssetCollectionsWithLocalIdentifiersOptions​(@NotNull
                                                                                                                           @NotNull NSArray<java.lang.String> identifiers,
                                                                                                                           @Nullable
                                                                                                                           @Nullable PHFetchOptions options)
        Fetch asset collections of a single type matching the provided local identifiers (type is inferred from the local identifiers) API-Since: 8.0
      • fetchAssetCollectionsWithTypeSubtypeOptions

        @NotNull
        public static @NotNull PHFetchResult<? extends PHAssetCollection> fetchAssetCollectionsWithTypeSubtypeOptions​(long type,
                                                                                                                      long subtype,
                                                                                                                      @Nullable
                                                                                                                      @Nullable PHFetchOptions options)
        Fetch asset collections of a single type and subtype provided (use PHAssetCollectionSubtypeAny to match all subtypes) API-Since: 8.0
      • fetchMomentsInMomentListOptions

        @NotNull
        @Deprecated
        public static @NotNull PHFetchResult<? extends PHAssetCollection> fetchMomentsInMomentListOptions​(@NotNull
                                                                                                          @NotNull PHCollectionList momentList,
                                                                                                          @Nullable
                                                                                                          @Nullable PHFetchOptions options)
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 13.0 Deprecated-Message: Will be removed in a future release
      • fetchMomentsWithOptions

        @NotNull
        @Deprecated
        public static @NotNull PHFetchResult<? extends PHAssetCollection> fetchMomentsWithOptions​(@Nullable
                                                                                                  @Nullable PHFetchOptions options)
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 13.0 Deprecated-Message: Will be removed in a future release
      • fetchTopLevelUserCollectionsWithOptions

        @NotNull
        public static @NotNull PHFetchResult<? extends PHCollection> fetchTopLevelUserCollectionsWithOptions​(@Nullable
                                                                                                             @Nullable PHFetchOptions options)
      • 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)
      • 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()
      • transientAssetCollectionWithAssetFetchResultTitle

        @NotNull
        public static @NotNull PHAssetCollection transientAssetCollectionWithAssetFetchResultTitle​(@NotNull
                                                                                                   @NotNull PHFetchResult<? extends PHAsset> fetchResult,
                                                                                                   @Nullable
                                                                                                   @Nullable java.lang.String title)
        API-Since: 8.0
      • transientAssetCollectionWithAssetsTitle

        @NotNull
        public static @NotNull PHAssetCollection transientAssetCollectionWithAssetsTitle​(@NotNull
                                                                                         @NotNull NSArray<? extends PHAsset> assets,
                                                                                         @Nullable
                                                                                         @Nullable java.lang.String title)
        These asset collections are only in-memory and are not persisted to disk API-Since: 8.0
      • version_static

        public static long version_static()
      • approximateLocation

        @Nullable
        public @Nullable CLLocation approximateLocation()
        API-Since: 8.0
      • assetCollectionSubtype

        public long assetCollectionSubtype()
        API-Since: 8.0
      • assetCollectionType

        public long assetCollectionType()
        API-Since: 8.0
      • endDate

        @Nullable
        public @Nullable NSDate endDate()
        API-Since: 8.0
      • estimatedAssetCount

        public long estimatedAssetCount()
        These counts are just estimates; the actual count of objects returned from a fetch should be used if you care about accuracy. Returns NSNotFound if a count cannot be quickly returned. API-Since: 8.0
      • localizedLocationNames

        @NotNull
        public @NotNull NSArray<java.lang.String> localizedLocationNames()
        API-Since: 8.0
      • startDate

        @Nullable
        public @Nullable NSDate startDate()
        API-Since: 8.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.