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

      • PHAssetChangeRequest

        protected PHAssetChangeRequest​(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)
      • changeRequestForAsset

        public static PHAssetChangeRequest changeRequestForAsset​(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.
      • classFallbacksForKeyedArchiver

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

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

        public static java.lang.Object creationRequestForAssetFromImage​(UIImage image)
        Basic asset creation. For finer-grained control, see PHAssetCreationRequest.
      • creationRequestForAssetFromImageAtFileURL

        public static java.lang.Object creationRequestForAssetFromImageAtFileURL​(NSURL fileURL)
      • creationRequestForAssetFromVideoAtFileURL

        public static java.lang.Object creationRequestForAssetFromVideoAtFileURL​(NSURL fileURL)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • 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()
      • creationDate

        public NSDate creationDate()
      • isFavorite

        public boolean isFavorite()
      • setFavorite

        public void setFavorite​(boolean value)
      • 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
      • 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
      • placeholderForCreatedAsset

        public 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
      • 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.
      • setCreationDate

        public void setCreationDate​(NSDate value)
      • setLocation

        public void setLocation​(CLLocation value)