Foundation · IOS API REFERENCE
Stream
class · SDK 27.1
class Stream
Members (13)
static · iOS 8.0+getBoundStreams
TypeScriptstatic getBoundStreams(bufferSize: number): { $ret: null; $out: { "inputStream": (InputStream) | null; "outputStream": (OutputStream) | null } }
Swift declarationclass func getBoundStreams(withBufferSize bufferSize: Int, inputStream: AutoreleasingUnsafeMutablePointer<InputStream?>?, outputStream: AutoreleasingUnsafeMutablePointer<OutputStream?>?)
Omit the output parameters from the call. The result contains $ret and $out, with inputStream, outputStream inside $out.
static · iOS 8.0+ · Deprecated in iOS 100000.0getStreamsToHost
TypeScriptstatic getStreamsToHost(hostname: string, port: number): { $ret: null; $out: { "inputStream": (InputStream) | null; "outputStream": (OutputStream) | null } }
Swift declarationclass func getStreamsToHost(withName hostname: String, port: Int, inputStream: AutoreleasingUnsafeMutablePointer<InputStream?>?, outputStream: AutoreleasingUnsafeMutablePointer<OutputStream?>?)
Omit the output parameters from the call. The result contains $ret and $out, with inputStream, outputStream inside $out.
methodclose
TypeScriptclose(): void
Swift declarationfunc close()
initinit
TypeScriptstatic init(): Stream
Swift declarationinit()
methodopen
TypeScriptopen(): void
Swift declarationfunc open()
methodproperty
TypeScriptproperty(key: Stream_PropertyKey): (unknown) | null
Swift declarationfunc property(forKey key: Stream.PropertyKey) -> Any?
methodremove
TypeScriptremove(aRunLoop: RunLoop, mode: RunLoop_Mode): void
Swift declarationfunc remove(from aRunLoop: RunLoop, forMode mode: RunLoop.Mode)
methodschedule
TypeScriptschedule(aRunLoop: RunLoop, mode: RunLoop_Mode): void
Swift declarationfunc schedule(in aRunLoop: RunLoop, forMode mode: RunLoop.Mode)
methodsetProperty
TypeScriptsetProperty(property: (unknown) | null, key: Stream_PropertyKey): boolean
Swift declarationfunc setProperty(_ property: Any?, forKey key: Stream.PropertyKey) -> Bool
getdelegate
TypeScriptget delegate(): (SDKHandle) | null
Swift declarationunowned(unsafe) var delegate: (any StreamDelegate)? { get set }
setdelegate
TypeScriptset delegate(value: (Implements<StreamDelegate> | SDKHandle) | null)
Swift declarationunowned(unsafe) var delegate: (any StreamDelegate)? { get set }
getstreamError
TypeScriptget streamError(): (NativeError) | null
Swift declarationvar streamError: (any Error)? { get }
getstreamStatus
TypeScriptget streamStatus(): Stream_Status
Swift declarationvar streamStatus: Stream.Status { get }
Skipped declarations
No declarations were skipped in this snapshot.
All Foundation types →