MultipeerKit Documentation Beta

Class Multipeer​Data​Source

@available(tvOS 13.0, *) @available(OSX 10.15, *) @available(iOS 13.0, *) public final class MultipeerDataSource: ObservableObject
%3 MultipeerDataSource MultipeerDataSource ObservableObject ObservableObject MultipeerDataSource->ObservableObject

Conforms To

ObservableObject

Initializers

init(transceiver:​)

public init(transceiver: MultipeerTransceiver)

Initializes a new data source.

Parameters

transceiver Multipeer​Transceiver

The transceiver to be used by this data source. Note that the data source will set availablePeersDidChange on the transceiver, so if you wish to use that closure yourself, you won't be able to use the data source.

Properties

transceiver

let transceiver: MultipeerTransceiver

available​Peers

var availablePeers: [Peer]

Peers currently available for invitation, connection and data transmission.