Class NSURLCache

    • Constructor Detail

      • NSURLCache

        public NSURLCache()
      • NSURLCache

        public NSURLCache​(long memoryCapacity,
                          long diskCapacity,
                          java.lang.String path)
    • Method Detail

      • getSharedURLCache

        public static NSURLCache getSharedURLCache()
      • setSharedURLCache

        public static void setSharedURLCache​(NSURLCache v)
      • getMemoryCapacity

        public long getMemoryCapacity()
      • setMemoryCapacity

        public void setMemoryCapacity​(long v)
      • getDiskCapacity

        public long getDiskCapacity()
      • setDiskCapacity

        public void setDiskCapacity​(long v)
      • getCurrentMemoryUsage

        public long getCurrentMemoryUsage()
      • getCurrentDiskUsage

        public long getCurrentDiskUsage()
      • init

        protected long init​(long memoryCapacity,
                            long diskCapacity,
                            java.lang.String path)
      • removeCachedResponse

        public void removeCachedResponse​(NSURLRequest request)
      • removeAllCachedResponses

        public void removeAllCachedResponses()
      • removeCachedResponsesSinceDate

        public void removeCachedResponsesSinceDate​(NSDate date)
        Since:
        Available in iOS 8.0 and later.
      • getCachedResponse

        public void getCachedResponse​(NSURLSessionDataTask dataTask,
                                      org.robovm.objc.block.VoidBlock1<NSCachedURLResponse> completionHandler)
        Since:
        Available in iOS 8.0 and later.
      • removeCachedResponse

        public void removeCachedResponse​(NSURLSessionDataTask dataTask)
        Since:
        Available in iOS 8.0 and later.