Package apple.photos

Class PHCollectionListChangeRequest

  • All Implemented Interfaces:
    NSObject

    public class PHCollectionListChangeRequest
    extends PHChangeRequest
    PHCollectionListChangeRequest can only be created or used within a -[PHPhotoLibrary performChanges:] or -[PHPhotoLibrary performChangesAndWait:] block. API-Since: 8.0
    • Constructor Detail

      • PHCollectionListChangeRequest

        protected PHCollectionListChangeRequest​(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)
      • changeRequestForCollectionList

        public static PHCollectionListChangeRequest changeRequestForCollectionList​(@NotNull
                                                                                   @NotNull PHCollectionList collectionList)
        if the collection list does not allow the type of change requested, these methods will raise an exception, call canPerformEditOperation: on the collection list to determine if the type of edit operation is allowed. API-Since: 8.0
      • changeRequestForCollectionListChildCollections

        public static PHCollectionListChangeRequest changeRequestForCollectionListChildCollections​(@NotNull
                                                                                                   @NotNull PHCollectionList collectionList,
                                                                                                   @NotNull
                                                                                                   @NotNull PHFetchResult<? extends PHCollection> childCollections)
        to add, remove or rearrange child collections in a collection list, passing in the fetched collections in that collection list will ensure that the child collection positions are tracked correctly in the case that the collection list has been externally edited after the fetch, but before this change is applied API-Since: 8.0
      • classFallbacksForKeyedArchiver

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

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

        @NotNull
        public static @NotNull PHCollectionListChangeRequest creationRequestForCollectionListWithTitle​(@NotNull
                                                                                                       @NotNull java.lang.String title)
        API-Since: 8.0
      • debugDescription_static

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

        public static void deleteCollectionLists​(@NotNull
                                                 @NotNull NSFastEnumeration collectionLists)
        requests that the specified collection lists and all their child collections (recursively) be deleted API-Since: 8.0
      • 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)
      • 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()
      • addChildCollections

        public void addChildCollections​(@NotNull
                                        @NotNull NSFastEnumeration collections)
        A PHCollection can only belong to a single parent PHCollection API-Since: 8.0
      • insertChildCollectionsAtIndexes

        public void insertChildCollectionsAtIndexes​(@NotNull
                                                    @NotNull NSFastEnumeration collections,
                                                    @NotNull
                                                    @NotNull NSIndexSet indexes)
        API-Since: 8.0
      • moveChildCollectionsAtIndexesToIndex

        public void moveChildCollectionsAtIndexesToIndex​(@NotNull
                                                         @NotNull NSIndexSet indexes,
                                                         long toIndex)
        The move removes the child collections at fromIndexes first then inserts those collections at the toIndex, so toIndex should point to a location based on the updated indexes after having removed the child collections at fromIndexes API-Since: 8.0
      • placeholderForCreatedCollectionList

        @NotNull
        public @NotNull PHObjectPlaceholder placeholderForCreatedCollectionList()
        This can be used to fetch the newly created collection list after the change block has completed by using -localIdentifier It can also be added directly to collection lists within the current change block API-Since: 8.0
      • removeChildCollections

        public void removeChildCollections​(@NotNull
                                           @NotNull NSFastEnumeration collections)
        API-Since: 8.0
      • removeChildCollectionsAtIndexes

        public void removeChildCollectionsAtIndexes​(@NotNull
                                                    @NotNull NSIndexSet indexes)
        API-Since: 8.0
      • replaceChildCollectionsAtIndexesWithChildCollections

        public void replaceChildCollectionsAtIndexesWithChildCollections​(@NotNull
                                                                         @NotNull NSIndexSet indexes,
                                                                         @NotNull
                                                                         @NotNull NSFastEnumeration collections)
        API-Since: 8.0
      • setTitle

        public void setTitle​(@NotNull
                             @NotNull java.lang.String value)
        API-Since: 8.0
      • title

        @NotNull
        public @NotNull java.lang.String title()
        API-Since: 8.0
      • changeRequestForTopLevelCollectionListUserCollections

        public static PHCollectionListChangeRequest changeRequestForTopLevelCollectionListUserCollections​(@NotNull
                                                                                                          @NotNull PHFetchResult<? extends PHCollection> childCollections)
        to add, remove or rearrange child collections in the TOP LEVEL collection list, passing in the fetched collections in that collection list will ensure that the child collection positions are tracked correctly in the case that the collection list has been externally edited after the fetch, but before this change is applied API-Since: 14.2
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.