Package org.robovm.apple.foundation
Class NSURLSessionTask
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSURLSessionTask
-
- All Implemented Interfaces:
NSObjectProtocol
,NSProgressReporting
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
AVAggregateAssetDownloadTask
,AVAssetDownloadTask
,NSURLSessionDataTask
,NSURLSessionDownloadTask
,NSURLSessionStreamTask
public class NSURLSessionTask extends NSObject implements NSProgressReporting
- Since:
- Available in iOS 7.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSURLSessionTask.NSURLSessionTaskPtr
-
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 NSURLSessionTask()
protected
NSURLSessionTask(NSObject.Handle h, long handle)
protected
NSURLSessionTask(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
long
getCountOfBytesClientExpectsToReceive()
long
getCountOfBytesClientExpectsToSend()
long
getCountOfBytesExpectedToReceive()
long
getCountOfBytesExpectedToSend()
long
getCountOfBytesReceived()
long
getCountOfBytesSent()
NSURLRequest
getCurrentRequest()
NSDate
getEarliestBeginDate()
NSError
getError()
NSURLRequest
getOriginalRequest()
float
getPriority()
NSProgress
getProgress()
NSURLResponse
getResponse()
NSURLSessionTaskState
getState()
java.lang.String
getTaskDescription()
long
getTaskIdentifier()
void
resume()
void
setCountOfBytesClientExpectsToReceive(long v)
void
setCountOfBytesClientExpectsToSend(long v)
void
setEarliestBeginDate(NSDate v)
void
setPriority(float v)
void
setTaskDescription(java.lang.String v)
void
suspend()
-
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
-
NSURLSessionTask
public NSURLSessionTask()
-
NSURLSessionTask
protected NSURLSessionTask(NSObject.Handle h, long handle)
-
NSURLSessionTask
protected NSURLSessionTask(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getTaskIdentifier
public long getTaskIdentifier()
-
getOriginalRequest
public NSURLRequest getOriginalRequest()
-
getCurrentRequest
public NSURLRequest getCurrentRequest()
-
getResponse
public NSURLResponse getResponse()
-
getProgress
public NSProgress getProgress()
- Specified by:
getProgress
in interfaceNSProgressReporting
- Since:
- Available in iOS 11.0 and later.
-
getEarliestBeginDate
public NSDate getEarliestBeginDate()
- Since:
- Available in iOS 11.0 and later.
-
setEarliestBeginDate
public void setEarliestBeginDate(NSDate v)
- Since:
- Available in iOS 11.0 and later.
-
getCountOfBytesClientExpectsToSend
public long getCountOfBytesClientExpectsToSend()
- Since:
- Available in iOS 11.0 and later.
-
setCountOfBytesClientExpectsToSend
public void setCountOfBytesClientExpectsToSend(long v)
- Since:
- Available in iOS 11.0 and later.
-
getCountOfBytesClientExpectsToReceive
public long getCountOfBytesClientExpectsToReceive()
- Since:
- Available in iOS 11.0 and later.
-
setCountOfBytesClientExpectsToReceive
public void setCountOfBytesClientExpectsToReceive(long v)
- Since:
- Available in iOS 11.0 and later.
-
getCountOfBytesReceived
public long getCountOfBytesReceived()
-
getCountOfBytesSent
public long getCountOfBytesSent()
-
getCountOfBytesExpectedToSend
public long getCountOfBytesExpectedToSend()
-
getCountOfBytesExpectedToReceive
public long getCountOfBytesExpectedToReceive()
-
getTaskDescription
public java.lang.String getTaskDescription()
-
setTaskDescription
public void setTaskDescription(java.lang.String v)
-
getState
public NSURLSessionTaskState getState()
-
getError
public NSError getError()
-
getPriority
public float getPriority()
- Since:
- Available in iOS 8.0 and later.
-
setPriority
public void setPriority(float v)
- Since:
- Available in iOS 8.0 and later.
-
cancel
public void cancel()
-
suspend
public void suspend()
-
resume
public void resume()
-
-