Class LPMetadataProvider

  • All Implemented Interfaces:
    NSObject

    public class LPMetadataProvider
    extends NSObject
    An LPMetadataProvider object retrieves metadata for a given URL. An instance of LPMetadataProvider can only be asked to retrieve metadata once; a new instance should be created for each request. A client must have the com.apple.security.network.client entitlement in order to be able to use LPMetadataProvider for remote URLs.
    • Constructor Detail

      • LPMetadataProvider

        protected LPMetadataProvider​(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)
      • cancel

        public void cancel()
        Cancel a metadata request. If the request had not already completed, the completion handler will be invoked with the error code `LPErrorMetadataFetchCancelled`.
      • 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)
      • setShouldFetchSubresources

        public void setShouldFetchSubresources​(boolean value)
        A boolean value indicating whether LPMetadataProvider should download secondary resources specified by the metadata, like the icon, image, or video. If shouldFetchSubresources is set to `NO`, the returned LPLinkMetadata object will consist only of metadata retrieved from the main resource. The default value is `YES`.
      • setTimeout

        public void setTimeout​(double value)
        The time interval after which the request will automatically fail if it has not already completed. If the timeout is reached, no metadata is returned; the completion handler will be invoked with the error code `LPErrorMetadataFetchTimedOut`. The default timeout is 30 seconds.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • shouldFetchSubresources

        public boolean shouldFetchSubresources()
        A boolean value indicating whether LPMetadataProvider should download secondary resources specified by the metadata, like the icon, image, or video. If shouldFetchSubresources is set to `NO`, the returned LPLinkMetadata object will consist only of metadata retrieved from the main resource. The default value is `YES`.
      • startFetchingMetadataForURLCompletionHandler

        public void startFetchingMetadataForURLCompletionHandler​(NSURL URL,
                                                                 LPMetadataProvider.Block_startFetchingMetadataForURLCompletionHandler completionHandler)
        Fetch metadata for the given URL. The completion handler will be called on a non-main queue. File URLs returned in the resultant LPLinkMetadata will be deleted when the completion handler returns. An exception will be thrown if this is called more than once on a particular LPMetadataProvider instance.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • timeout

        public double timeout()
        The time interval after which the request will automatically fail if it has not already completed. If the timeout is reached, no metadata is returned; the completion handler will be invoked with the error code `LPErrorMetadataFetchTimedOut`. The default timeout is 30 seconds.
      • version_static

        public static long version_static()