| Modifier and Type | Class and Description |
|---|---|
static interface |
NSURLCache.Block_getCachedResponseForDataTaskCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSURLCache(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NSURLCache |
alloc() |
static NSURLCache |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
NSCachedURLResponse |
cachedResponseForRequest(NSURLRequest request)
cachedResponseForRequest:
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
long |
currentDiskUsage()
Returns the current amount of space consumed by the
on-disk cache of the receiver.
|
long |
currentMemoryUsage()
Returns the current amount of space consumed by the
in-memory cache of the receiver.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
long |
diskCapacity()
The on-disk capacity of the receiver.
|
void |
getCachedResponseForDataTaskCompletionHandler(NSURLSessionDataTask dataTask,
NSURLCache.Block_getCachedResponseForDataTaskCompletionHandler completionHandler) |
static long |
hash_static() |
NSURLCache |
init() |
NSURLCache |
initWithMemoryCapacityDiskCapacityDirectoryURL(long memoryCapacity,
long diskCapacity,
NSURL directoryURL)
initWithMemoryCapacity:diskCapacity:directoryURL:
|
NSURLCache |
initWithMemoryCapacityDiskCapacityDiskPath(long memoryCapacity,
long diskCapacity,
java.lang.String path)
initWithMemoryCapacity:diskCapacity:diskPath:
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
memoryCapacity()
In-memory capacity of the receiver.
|
static NSURLCache |
new_objc() |
void |
removeAllCachedResponses()
removeAllCachedResponses
|
void |
removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) |
void |
removeCachedResponseForRequest(NSURLRequest request)
removeCachedResponseForRequest:
|
void |
removeCachedResponsesSinceDate(NSDate date)
removeCachedResponsesSince:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setDiskCapacity(long value)
The on-disk capacity of the receiver.
|
void |
setMemoryCapacity(long value)
In-memory capacity of the receiver.
|
static void |
setSharedURLCache(NSURLCache value)
[@property] sharedURLCache
|
static void |
setVersion_static(long aVersion) |
static NSURLCache |
sharedURLCache()
[@property] sharedURLCache
|
void |
storeCachedResponseForDataTask(NSCachedURLResponse cachedResponse,
NSURLSessionDataTask dataTask) |
void |
storeCachedResponseForRequest(NSCachedURLResponse cachedResponse,
NSURLRequest request)
storeCachedResponse:forRequest:
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSURLCache alloc()
public static NSURLCache allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSURLCache new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setSharedURLCache(NSURLCache value)
Returns the shared NSURLCache instance or sets the NSURLCache instance shared by all clients of the current process. This will be the new object returned when calls to the sharedURLCache method are made.
Unless set explicitly through a call to +setSharedURLCache:, this method returns an NSURLCache instance created with the following default values:
Users who do not have special caching requirements or constraints should find the default shared cache instance acceptable. If this default shared cache instance is not acceptable, +setSharedURLCache: can be called to set a different NSURLCache instance to be returned from this method. Callers should take care to ensure that the setter is called at a time when no other caller has a reference to the previously-set shared URL cache. This is to prevent storing cache data from becoming unexpectedly unretrievable.
public static void setVersion_static(long aVersion)
public static NSURLCache sharedURLCache()
Returns the shared NSURLCache instance or sets the NSURLCache instance shared by all clients of the current process. This will be the new object returned when calls to the sharedURLCache method are made.
Unless set explicitly through a call to +setSharedURLCache:, this method returns an NSURLCache instance created with the following default values:
Users who do not have special caching requirements or constraints should find the default shared cache instance acceptable. If this default shared cache instance is not acceptable, +setSharedURLCache: can be called to set a different NSURLCache instance to be returned from this method. Callers should take care to ensure that the setter is called at a time when no other caller has a reference to the previously-set shared URL cache. This is to prevent storing cache data from becoming unexpectedly unretrievable.
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public NSCachedURLResponse cachedResponseForRequest(NSURLRequest request)
Returns the NSCachedURLResponse stored in the cache with the given request.
The method returns nil if there is no NSCachedURLResponse stored using the given request.
request - the NSURLRequest to use as a key for the lookup.public long currentDiskUsage()
This size, measured in bytes, indicates the current usage of the on-disk cache.
public long currentMemoryUsage()
This size, measured in bytes, indicates the current usage of the in-memory cache.
public long diskCapacity()
The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary.
public void getCachedResponseForDataTaskCompletionHandler(NSURLSessionDataTask dataTask, NSURLCache.Block_getCachedResponseForDataTaskCompletionHandler completionHandler)
public NSURLCache init()
public NSURLCache initWithMemoryCapacityDiskCapacityDiskPath(long memoryCapacity, long diskCapacity, java.lang.String path)
Initializes an NSURLCache with the given capacity and path.
The returned NSURLCache is backed by disk, so developers can be more liberal with space when choosing the capacity for this kind of cache. A disk cache measured in the tens of megabytes should be acceptable in most cases.
memoryCapacity - the capacity, measured in bytes, for the cache in memory.diskCapacity - the capacity, measured in bytes, for the cache on disk.path - the path on disk where the cache data is stored.public long memoryCapacity()
At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary.
public void removeAllCachedResponses()
Clears the given cache, removing all NSCachedURLResponse objects that it stores.
public void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask)
public void removeCachedResponseForRequest(NSURLRequest request)
Removes the NSCachedURLResponse from the cache that is stored using the given request.
No action is taken if there is no NSCachedURLResponse stored with the given request.
request - the NSURLRequest to use as a key for the lookup.public void removeCachedResponsesSinceDate(NSDate date)
Clears the given cache of any cached responses since the provided date.
public void setDiskCapacity(long value)
The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary.
public void setMemoryCapacity(long value)
At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary.
public void storeCachedResponseForDataTask(NSCachedURLResponse cachedResponse, NSURLSessionDataTask dataTask)
public void storeCachedResponseForRequest(NSCachedURLResponse cachedResponse, NSURLRequest request)
Stores the given NSCachedURLResponse in the cache using the given request.
cachedResponse - The cached response to store.request - the NSURLRequest to use as a key for the storage.public NSURLCache initWithMemoryCapacityDiskCapacityDirectoryURL(long memoryCapacity, long diskCapacity, NSURL directoryURL)
Initializes an NSURLCache with the given capacity and directory.
memoryCapacity - the capacity, measured in bytes, for the cache in memory. Or 0 to disable memory cache.diskCapacity - the capacity, measured in bytes, for the cache on disk. Or 0 to disable disk cache.directoryURL - the path to a directory on disk where the cache data is stored. Or nil for default directory.