Package apple.photos

Class PHImageManager

    • Constructor Detail

      • PHImageManager

        protected PHImageManager​(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)
      • classFallbacksForKeyedArchiver

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • 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()
      • cancelImageRequest

        public void cancelImageRequest​(int requestID)
      • requestImageDataForAssetOptionsResultHandler

        public int requestImageDataForAssetOptionsResultHandler​(PHAsset asset,
                                                                PHImageRequestOptions options,
                                                                PHImageManager.Block_requestImageDataForAssetOptionsResultHandler resultHandler)
        Request largest represented image as data bytes for the specified asset.
        Parameters:
        asset - The asset whose image data is to be loaded.
        options - Options specifying how Photos should handle the request, format the requested image, and notify your app of progress or errors. If PHImageRequestOptionsVersionCurrent is requested and the asset has adjustments then the largest rendered image data is returned. In all other cases then the original image data is returned.
        resultHandler - A block that is called exactly once either synchronously on the current thread or asynchronously on the main thread depending on the synchronous option specified in the PHImageRequestOptions options parameter (deliveryMode is ignored).
      • requestImageForAssetTargetSizeContentModeOptionsResultHandler

        public int requestImageForAssetTargetSizeContentModeOptionsResultHandler​(PHAsset asset,
                                                                                 CGSize targetSize,
                                                                                 long contentMode,
                                                                                 PHImageRequestOptions options,
                                                                                 PHImageManager.Block_requestImageForAssetTargetSizeContentModeOptionsResultHandler resultHandler)
        Request an image representation for the specified asset.
        Parameters:
        asset - The asset whose image data is to be loaded.
        targetSize - The target size of image to be returned.
        contentMode - An option for how to fit the image to the aspect ratio of the requested size. If the asset's aspect ratio does not match that of the given targetSize, contentMode determines how the image will be resized. PHImageContentModeAspectFit: Fit the asked size by maintaining the aspect ratio, the delivered image may not necessarily be the asked targetSize (see PHImageRequestOptionsDeliveryMode and PHImageRequestOptionsResizeMode) PHImageContentModeAspectFill: Fill the asked size, some portion of the content may be clipped, the delivered image may not necessarily be the asked targetSize (see PHImageRequestOptionsDeliveryMode and PHImageRequestOptionsResizeMode) PHImageContentModeDefault: Use PHImageContentModeDefault when size is PHImageManagerMaximumSize (though no scaling/cropping will be done on the result)
        options - Options specifying how Photos should handle the request, format the requested image, and notify your app of progress or errors. If -[PHImageRequestOptions isSynchronous] returns NO (or options is nil), resultHandler may be called 1 or more times. Typically in this case, resultHandler will be called asynchronously on the main thread with the requested results. However, if deliveryMode = PHImageRequestOptionsDeliveryModeOpportunistic, resultHandler may be called synchronously on the calling thread if any image data is immediately available. If the image data returned in this first pass is of insufficient quality, resultHandler will be called again, asychronously on the main thread at a later time with the "correct" results. If the request is cancelled, resultHandler may not be called at all. If -[PHImageRequestOptions isSynchronous] returns YES, resultHandler will be called exactly once, synchronously and on the calling thread. Synchronous requests cannot be cancelled.
        resultHandler - A block that is called one or more times either synchronously on the current thread or asynchronously on the main thread depending on the options specified in the PHImageRequestOptions options parameter.
        Returns:
        A numeric identifier for the request. If you need to cancel the request before it completes, pass this identifier to the cancelImageRequest: method.
      • requestLivePhotoForAssetTargetSizeContentModeOptionsResultHandler

        public int requestLivePhotoForAssetTargetSizeContentModeOptionsResultHandler​(PHAsset asset,
                                                                                     CGSize targetSize,
                                                                                     long contentMode,
                                                                                     PHLivePhotoRequestOptions options,
                                                                                     PHImageManager.Block_requestLivePhotoForAssetTargetSizeContentModeOptionsResultHandler resultHandler)
        Requests a live photo representation of the asset. With PHImageRequestOptionsDeliveryModeOpportunistic (or if no options are specified), the resultHandler block may be called more than once (the first call may occur before the method returns). The PHImageResultIsDegradedKey key in the result handler's info parameter indicates when a temporary low-quality live photo is provided.
      • requestImageDataAndOrientationForAssetOptionsResultHandler

        public int requestImageDataAndOrientationForAssetOptionsResultHandler​(PHAsset asset,
                                                                              PHImageRequestOptions options,
                                                                              PHImageManager.Block_requestImageDataAndOrientationForAssetOptionsResultHandler resultHandler)
        Request largest represented image as data bytes and EXIF orientation for the specified asset.
        Parameters:
        asset - The asset whose image data is to be loaded.
        options - Options specifying how Photos should handle the request, format the requested image, and notify your app of progress or errors. If PHImageRequestOptionsVersionCurrent is requested and the asset has adjustments then the largest rendered image data is returned. In all other cases then the original image data is returned.
        resultHandler - A block that is called exactly once either synchronously on the current thread or asynchronously on the main thread depending on the synchronous option specified in the PHImageRequestOptions options parameter (deliveryMode is ignored). Orientation is an EXIF orientation as an CGImagePropertyOrientation. For iOS or tvOS, convert this to an UIImageOrientation.