Class QLThumbnailGenerator

  • All Implemented Interfaces:
    NSObject

    public class QLThumbnailGenerator
    extends NSObject
    • Constructor Detail

      • QLThumbnailGenerator

        protected QLThumbnailGenerator​(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)
      • cancelRequest

        public void cancelRequest​(QLThumbnailGenerationRequest request)
        Cancels the given QLThumbnailGenerationRequest.
        Parameters:
        request - The request that should be cancelled.
      • 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()
      • generateBestRepresentationForRequestCompletionHandler

        public void generateBestRepresentationForRequestCompletionHandler​(QLThumbnailGenerationRequest request,
                                                                          QLThumbnailGenerator.Block_generateBestRepresentationForRequestCompletionHandler completionHandler)
        Parameters:
        completionHandler - Always called when the thumbnail generation is over. The thumbnail passed to this handler is the most representative version of the thumbnail that was successfully generated (if any). If set, the error contains information about the issue that occurred while trying to generate the thumbnail. QLThumbnail error codes can be found in .
      • generateRepresentationsForRequestUpdateHandler

        public void generateRepresentationsForRequestUpdateHandler​(QLThumbnailGenerationRequest request,
                                                                   QLThumbnailGenerator.Block_generateRepresentationsForRequestUpdateHandler updateHandler)
        Parameters:
        updateHandler - Called for the successive requested representations of a thumbnail. If a representation was not successfully generated, this may be called with a nil representation. If a requested more representative version was successfully generated before a less representative one, this handler will be called only for the more representative version, skipping the less representative one. This handler is guaranteed to be called at least once, for the requested most representative version, whether a representation could be successfully generated or not. If set, the error contains information about the issue that occurred while trying to generate the representation of the given type. QLThumbnail error codes can be found in .
      • 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)
      • saveBestRepresentationForRequestToFileAtURLWithContentTypeCompletionHandler

        public void saveBestRepresentationForRequestToFileAtURLWithContentTypeCompletionHandler​(QLThumbnailGenerationRequest request,
                                                                                                NSURL fileURL,
                                                                                                java.lang.String contentType,
                                                                                                QLThumbnailGenerator.Block_saveBestRepresentationForRequestToFileAtURLWithContentTypeCompletionHandler completionHandler)
        Saves a thumbnail for the request on disk at fileURL. The file saved at fileURL has to be deleted when it is not used anymore. This is primarily intended for file provider extensions which need to upload thumbnails and have a small memory limit.
        Parameters:
        contentType - An image content type to save the thumbnail as, supported by CGImageDestination, such as kUTTypePNG or kUTTypeJPEG
        completionHandler - Always called when the thumbnail generation is over. Will contain an error if the thumbnail could not be successfully saved to disk at fileURL.
      • 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()