docs/Structs/SocketIOClientConfiguration.html
public struct SocketIOClientConfiguration : ExpressibleByArrayLiteral, Collection, MutableCollection
An array-like type that holds SocketIOClientOptions
Typealiases
`
Element
`
Type of element stored.
Swift
public typealias Element = SocketIOClientOption
`
Index
`
Index type.
Swift
public typealias Index = Array<SocketIOClientOption>.Index
`
Iterator
`
Iterator type.
Swift
public typealias Iterator = Array<SocketIOClientOption>.Iterator
`
SubSequence
`
SubSequence type.
Swift
public typealias SubSequence = Array<SocketIOClientOption>.SubSequence
Properties
`
startIndex
`
The start index of this collection.
Swift
public var startIndex: Index { get }
`
endIndex
`
The end index of this collection.
Swift
public var endIndex: Index { get }
`
isEmpty
`
Whether this collection is empty.
Swift
public var isEmpty: Bool { get }
`
count
`
The number of elements stored in this collection.
Swift
public var count: Index.Stride { get }
`
first
`
The first element in this collection.
Swift
public var first: Element? { get }
`
subscript(_:)
`
Swift
public subscript(position: Index) -> Element { get set }
`
subscript(_:)
`
Swift
public subscript(bounds: Range<Index>) -> SubSequence { get set }
Initializers
`
init(arrayLiteral:)
`
Creates a new SocketIOClientConfiguration from an array literal.
Swift
public init(arrayLiteral elements: Element...)
| arrayLiteral |
The elements.
|
Methods
`
makeIterator()
`
Creates an iterator for this collection.
Swift
public func makeIterator() -> Iterator
An iterator over this collection.
`
index(after:)
`
Swift
public func index(after i: Index) -> Index
The index after index.
`
insert(_:replacing:)
`
Special method that inserts element into the collection, replacing any other instances of element.
Swift
public mutating func insert(_ element: Element, replacing replace: Bool = true)
| element |
The element to insert.
|
| replacing |
Whether to replace any occurrences of element to the new item. Default is true.
|