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. API-Since: 8.0
    • Constructor Detail

      • PHAssetCollectionChangeRequest

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

        public static PHAssetCollectionChangeRequest changeRequestForAssetCollection​(@NotNull
                                                                                     @NotNull 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. API-Since: 8.0
      • changeRequestForAssetCollectionAssets

        public static PHAssetCollectionChangeRequest changeRequestForAssetCollectionAssets​(@NotNull
                                                                                           @NotNull PHAssetCollection assetCollection,
                                                                                           @NotNull
                                                                                           @NotNull 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 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()
      • creationRequestForAssetCollectionWithTitle

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

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

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

        public void addAssets​(@NotNull
                              @NotNull NSFastEnumeration assets)
        API-Since: 8.0
      • insertAssetsAtIndexes

        public void insertAssetsAtIndexes​(@NotNull
                                          @NotNull NSFastEnumeration assets,
                                          @NotNull
                                          @NotNull NSIndexSet indexes)
        API-Since: 8.0
      • moveAssetsAtIndexesToIndex

        public void moveAssetsAtIndexesToIndex​(@NotNull
                                               @NotNull 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 API-Since: 8.0
      • placeholderForCreatedAssetCollection

        @NotNull
        public @NotNull 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 API-Since: 8.0
      • removeAssets

        public void removeAssets​(@NotNull
                                 @NotNull NSFastEnumeration assets)
        API-Since: 8.0
      • removeAssetsAtIndexes

        public void removeAssetsAtIndexes​(@NotNull
                                          @NotNull NSIndexSet indexes)
        API-Since: 8.0
      • replaceAssetsAtIndexesWithAssets

        public void replaceAssetsAtIndexesWithAssets​(@NotNull
                                                     @NotNull NSIndexSet indexes,
                                                     @NotNull
                                                     @NotNull NSFastEnumeration assets)
        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
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.