Back to Socket Io Client Swift

SocketIOClientConfiguration

docs/Structs/SocketIOClientConfiguration.html

16.1.13.4 KB
Original Source

SocketIOClientConfiguration

public struct SocketIOClientConfiguration : ExpressibleByArrayLiteral, Collection, MutableCollection

An array-like type that holds SocketIOClientOptions

Typealiases

`

                Element
                `

Type of element stored.

Declaration

Swift

public typealias Element = SocketIOClientOption

`

                Index
                `

Index type.

Declaration

Swift

public typealias Index = Array<SocketIOClientOption>.Index

`

                Iterator
                `

Iterator type.

Declaration

Swift

public typealias Iterator = Array<SocketIOClientOption>.Iterator

`

                SubSequence
                `

SubSequence type.

Declaration

Swift

public typealias SubSequence = Array<SocketIOClientOption>.SubSequence

Properties

`

                startIndex
                `

The start index of this collection.

Declaration

Swift

public var startIndex: Index { get }

`

                endIndex
                `

The end index of this collection.

Declaration

Swift

public var endIndex: Index { get }

`

                isEmpty
                `

Whether this collection is empty.

Declaration

Swift

public var isEmpty: Bool { get }

`

                count
                `

The number of elements stored in this collection.

Declaration

Swift

public var count: Index.Stride { get }

`

                first
                `

The first element in this collection.

Declaration

Swift

public var first: Element? { get }

`

                subscript(_:)
                `

Declaration

Swift

public subscript(position: Index) -> Element { get set }

`

                subscript(_:)
                `

Declaration

Swift

public subscript(bounds: Range<Index>) -> SubSequence { get set }

Initializers

`

                init(arrayLiteral:)
                `

Creates a new SocketIOClientConfiguration from an array literal.

Declaration

Swift

public init(arrayLiteral elements: Element...)

Parameters

| arrayLiteral |

The elements.

|

Methods

`

                makeIterator()
                `

Creates an iterator for this collection.

Declaration

Swift

public func makeIterator() -> Iterator

Return Value

An iterator over this collection.

`

                index(after:)
                `

Declaration

Swift

public func index(after i: Index) -> Index

Return Value

The index after index.

`

                insert(_:replacing:)
                `

Special method that inserts element into the collection, replacing any other instances of element.

Declaration

Swift

public mutating func insert(_ element: Element, replacing replace: Bool = true)

Parameters

| element |

The element to insert.

| | replacing |

Whether to replace any occurrences of element to the new item. Default is true.

|