Package org.robovm.apple.foundation
Class NSURLCache
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSURLCache
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSURLCache extends NSObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSURLCache.NSURLCachePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSURLCache()
NSURLCache(long memoryCapacity, long diskCapacity, java.lang.String path)
protected
NSURLCache(NSObject.Handle h, long handle)
protected
NSURLCache(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NSCachedURLResponse
getCachedResponse(NSURLRequest request)
void
getCachedResponse(NSURLSessionDataTask dataTask, org.robovm.objc.block.VoidBlock1<NSCachedURLResponse> completionHandler)
long
getCurrentDiskUsage()
long
getCurrentMemoryUsage()
long
getDiskCapacity()
long
getMemoryCapacity()
static NSURLCache
getSharedURLCache()
protected long
init(long memoryCapacity, long diskCapacity, java.lang.String path)
void
removeAllCachedResponses()
void
removeCachedResponse(NSURLRequest request)
void
removeCachedResponse(NSURLSessionDataTask dataTask)
void
removeCachedResponsesSinceDate(NSDate date)
void
setDiskCapacity(long v)
void
setMemoryCapacity(long v)
static void
setSharedURLCache(NSURLCache v)
void
storeCachedResponse(NSCachedURLResponse cachedResponse, NSURLRequest request)
void
storeCachedResponse(NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSURLCache
public NSURLCache()
-
NSURLCache
protected NSURLCache(NSObject.Handle h, long handle)
-
NSURLCache
protected NSURLCache(NSObject.SkipInit skipInit)
-
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)
-
getCachedResponse
public NSCachedURLResponse getCachedResponse(NSURLRequest request)
-
storeCachedResponse
public void storeCachedResponse(NSCachedURLResponse cachedResponse, NSURLRequest request)
-
removeCachedResponse
public void removeCachedResponse(NSURLRequest request)
-
removeAllCachedResponses
public void removeAllCachedResponses()
-
removeCachedResponsesSinceDate
public void removeCachedResponsesSinceDate(NSDate date)
- Since:
- Available in iOS 8.0 and later.
-
storeCachedResponse
public void storeCachedResponse(NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask)
- 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.
-
-