Package apple.photos

Class PHAssetCollectionChangeRequest

  • All Implemented Interfaces:
    NSObject

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

      • PHAssetCollectionChangeRequest

        protected PHAssetCollectionChangeRequest​(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)
      • changeRequestForAssetCollection

        public static PHAssetCollectionChangeRequest changeRequestForAssetCollection​(PHAssetCollection assetCollection)
        if the asset collection does not allow the type of change requested, these methods will raise an exception, call canPerformEditOperation: on the asset collection to determine if the type of edit operation is allowed.
      • changeRequestForAssetCollectionAssets

        public static PHAssetCollectionChangeRequest changeRequestForAssetCollectionAssets​(PHAssetCollection assetCollection,
                                                                                           PHFetchResult<? extends PHAsset> assets)
        to add, remove or rearrange assets in a collection, passing in the fetched assets in that collection will ensure that the asset positions are tracked correctly in the case that the collection 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()
      • creationRequestForAssetCollectionWithTitle

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

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

        public static void deleteAssetCollections​(NSFastEnumeration assetCollections)
        requests that the specified asset collections 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()
      • moveAssetsAtIndexesToIndex

        public void moveAssetsAtIndexesToIndex​(NSIndexSet fromIndexes,
                                               long toIndex)
        The move removes the assets at fromIndexes first then inserts those assets at the toIndex, so toIndex should point to a location based on the updated indexes after having removed the assets at fromIndexes
      • placeholderForCreatedAssetCollection

        public PHObjectPlaceholder placeholderForCreatedAssetCollection()
        This can be used to fetch the newly created asset collection after the change block has completed by using -localIdentifier It can also be added directly to collection lists within the current change block
      • removeAssetsAtIndexes

        public void removeAssetsAtIndexes​(NSIndexSet indexes)
      • setTitle

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

        public java.lang.String title()