One Logo Pool Ball
Social · IOS API REFERENCE

SLRequest

class · iOS 6.0+ · SDK 27.1

class SLRequest

Members (7)

init · iOS 6.0+

init

TypeScript
static init(serviceType: (string) | null, requestMethod: SLRequestMethod, url?: (string) | null, parameters?: (NativeMap<unknown, unknown>) | null): SLRequest
Swift declaration
init!(forServiceType serviceType: String!, requestMethod: SLRequestMethod, url: URL!, parameters: [AnyHashable : Any]!)
method · iOS 6.0+

addMultipartData

TypeScript
addMultipartData(data?: (ArrayBuffer) | null, name?: (string) | null, type?: (string) | null, filename?: (string) | null): void
Swift declaration
func addMultipartData(_ data: Data!, withName name: String!, type: String!, filename: String!)
method · iOS 6.0+

perform

TypeScript
perform(handler?: (((arg0: (ArrayBuffer) | null, arg1: (_Foundation_HTTPURLResponse) | null, arg2: (NativeError) | null) => void)) | null): void
Swift declaration
func perform(handler: SLRequestHandler!)
method · iOS 6.0+

preparedURLRequest

TypeScript
preparedURLRequest(): (_Foundation_URLRequest) | null
Swift declaration
func preparedURLRequest() -> URLRequest!
get · iOS 6.0+

url

TypeScript
get url(): (string) | null
Swift declaration
var url: URL! { get }
get · iOS 6.0+

parameters

TypeScript
get parameters(): (NativeMap<unknown, unknown>) | null
Swift declaration
var parameters: [AnyHashable : Any]! { get }
get · iOS 6.0+

requestMethod

TypeScript
get requestMethod(): SLRequestMethod
Swift declaration
var requestMethod: SLRequestMethod { get }

Skipped declarations

3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SLRequest.account

The iOS SDK compiler rejected this binding: reference to member 'account' cannot be resolved without a contextual type

SLRequest.account

The iOS SDK compiler rejected this binding: value of type 'SLRequest' has no member 'account'

SLRequest.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Social types →