The information in this topic may be out of date. The current SDK reference guide has moved here.
initWithUri method
This is the constructor for the AbstractProxySettings class.
To initiate the use of a proxy server, create a AbstractProxySettings object with this constructor and then pass the object to the proxy method.
Syntax
Call syntax
AbstractProxySettings* proxySettings = [[AbstractProxySettings alloc] initWithUri : uri port: port username: username password: password ];
AbstractProxySettings* proxySettings = [[AbstractProxySettings alloc] initWithUri : uri username: username password: password ];
AbstractProxySettings* proxySettings = [[AbstractProxySettings alloc] initWithUri : uri port: port ];
Declaration
(instancetype)initWithUri:(NSString *)uri port:(NSInteger)port
Parameters
- uri
- Type:NSString*
- The proxy's server URI.
- port
- Type:NSInteger
- The proxy's port (default 80).
- username
- Type:NSString*_Nullable
- The username to be sent to the proxy (default nil).
- password
- Type:NSString*_Nullable
- The password to be sent to the proxy (default nil).
Return value
- Type: AbstractProxySettings*