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.
    • Constructor Detail

      • PHCollectionListChangeRequest

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

        public static PHCollectionListChangeRequest changeRequestForCollectionList​(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.
      • changeRequestForCollectionListChildCollections

        public static PHCollectionListChangeRequest changeRequestForCollectionListChildCollections​(PHCollectionList collectionList,
                                                                                                   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
      • classFallbacksForKeyedArchiver

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

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

        public static java.lang.Object creationRequestForCollectionListWithTitle​(java.lang.String title)
      • debugDescription_static

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

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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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​(NSFastEnumeration collections)
        A PHCollection can only belong to a single parent PHCollection
      • insertChildCollectionsAtIndexes

        public void insertChildCollectionsAtIndexes​(NSFastEnumeration collections,
                                                    NSIndexSet indexes)
      • moveChildCollectionsAtIndexesToIndex

        public void moveChildCollectionsAtIndexesToIndex​(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
      • placeholderForCreatedCollectionList

        public 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
      • removeChildCollections

        public void removeChildCollections​(NSFastEnumeration collections)
      • removeChildCollectionsAtIndexes

        public void removeChildCollectionsAtIndexes​(NSIndexSet indexes)
      • replaceChildCollectionsAtIndexesWithChildCollections

        public void replaceChildCollectionsAtIndexesWithChildCollections​(NSIndexSet indexes,
                                                                         NSFastEnumeration collections)
      • setTitle

        public void setTitle​(java.lang.String value)
      • title

        public java.lang.String title()
      • changeRequestForTopLevelCollectionListUserCollections

        public static PHCollectionListChangeRequest changeRequestForTopLevelCollectionListUserCollections​(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