public class NSURLConnection extends NSObject
| Constructor and Description |
|---|
NSURLConnection(NSURLRequest request,
NSURLConnectionDelegate delegate)
Deprecated.
|
NSURLConnection(NSURLRequest request,
NSURLConnectionDelegate delegate,
boolean startImmediately)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the asynchronous load of a request.
|
static NSURLConnection |
connectionWithRequest(NSURLRequest NSURLRequest,
NSURLConnectionDelegate NSURLConnectionDelegate)
Deprecated.
|
NSURLRequest |
currentRequest()
Returns the current value of the request for this connection.
|
NSURLRequest |
originalRequest()
Returns a copy of this connection request.
|
static <T extends NSURLResponse> |
sendSynchronousRequest(NSURLRequest request,
crossmobile.rt.StrongReference<T> response,
crossmobile.rt.StrongReference<NSError> error)
Deprecated.
|
void |
start()
Starts loading data for this connection.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey@Deprecated public NSURLConnection(NSURLRequest request, NSURLConnectionDelegate delegate)
request - The URL of the connection.delegate - The corresponding delegate for this connection.@Deprecated public NSURLConnection(NSURLRequest request, NSURLConnectionDelegate delegate, boolean startImmediately)
request - The URL to load.delegate - The delegate object of the connectionstartImmediately - TRUE then loading data starts immediately.@Deprecated public static <T extends NSURLResponse> NSData sendSynchronousRequest(NSURLRequest request, crossmobile.rt.StrongReference<T> response, crossmobile.rt.StrongReference<NSError> error)
T - NSURLResponse typerequest - The URL of the data load request.response - The URL of the response.error - The error returned in case of failure, NULL in case of
success.@Deprecated public static NSURLConnection connectionWithRequest(NSURLRequest NSURLRequest, NSURLConnectionDelegate NSURLConnectionDelegate)
NSURLRequest - The URL of the connection.NSURLConnectionDelegate - The corresponding delegate for this
connection.public NSURLRequest originalRequest()
public NSURLRequest currentRequest()
public void start()
public void cancel()
Copyright © 2020. All rights reserved.