Package apple.photos

Class PHAssetChangeRequest

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    PHAssetCreationRequest

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

      • PHAssetChangeRequest

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static PHAssetChangeRequest 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)
      • changeRequestForAsset

        public static PHAssetChangeRequest changeRequestForAsset​(@NotNull
                                                                 @NotNull PHAsset asset)
        if the asset does not allow the type of change requested, these methods will raise an exception, call canPerformEditOperation: on the asset to determine if the type of edit operation is allowed. 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()
      • creationRequestForAssetFromImage

        @NotNull
        public static @NotNull PHAssetChangeRequest creationRequestForAssetFromImage​(@NotNull
                                                                                     @NotNull UIImage image)
        Basic asset creation. For finer-grained control, see PHAssetCreationRequest. API-Since: 8.0
      • creationRequestForAssetFromImageAtFileURL

        @Nullable
        public static @Nullable PHAssetChangeRequest creationRequestForAssetFromImageAtFileURL​(@NotNull
                                                                                               @NotNull NSURL fileURL)
        API-Since: 8.0
      • creationRequestForAssetFromVideoAtFileURL

        @Nullable
        public static @Nullable PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL​(@NotNull
                                                                                               @NotNull NSURL fileURL)
        API-Since: 8.0
      • debugDescription_static

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

        public static void deleteAssets​(@NotNull
                                        @NotNull NSFastEnumeration assets)
        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()
      • contentEditingOutput

        @Nullable
        public @Nullable PHContentEditingOutput contentEditingOutput()
        API-Since: 8.0
      • creationDate

        @Nullable
        public @Nullable NSDate creationDate()
        API-Since: 8.0
      • isFavorite

        public boolean isFavorite()
        API-Since: 8.0
      • setFavorite

        public void setFavorite​(boolean value)
        API-Since: 8.0
      • isHidden

        public boolean isHidden()
        a hidden asset will be excluded from moment collections, but may still be included in other smart or regular album collections API-Since: 8.0
      • setHidden

        public void setHidden​(boolean value)
        a hidden asset will be excluded from moment collections, but may still be included in other smart or regular album collections API-Since: 8.0
      • location

        @Nullable
        public @Nullable CLLocation location()
        API-Since: 8.0
      • placeholderForCreatedAsset

        @Nullable
        public @Nullable PHObjectPlaceholder placeholderForCreatedAsset()
        This can be used to fetch the newly created asset after the change block has completed by using -localIdentifier It can also be added directly to collections within the current change block API-Since: 8.0
      • revertAssetContentToOriginal

        public void revertAssetContentToOriginal()
        Reverting requires that all original resources are downloaded to the device first and this must be performed manually by the client if the original resources aren't already local. Use PHAssetResourceManager to ensure that original asset content is downloaded to the current device before making this request. API-Since: 8.0
      • setContentEditingOutput

        public void setContentEditingOutput​(@Nullable
                                            @Nullable PHContentEditingOutput value)
        API-Since: 8.0
      • setCreationDate

        public void setCreationDate​(@Nullable
                                    @Nullable NSDate value)
        API-Since: 8.0
      • setLocation

        public void setLocation​(@Nullable
                                @Nullable CLLocation value)
        API-Since: 8.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.