MultipeerKit Documentation Beta

Structure Peer

public struct Peer: Hashable, Identifiable

Represents a remote peer.

Peer Peer Identifiable Identifiable Peer->Identifiable Hashable Hashable Peer->Hashable

Conforms To

Hashable
Identifiable

Initializers

init(peer:​discovery​Info:​)

init(peer: MCPeerID, discoveryInfo: [String: String]?) throws

Properties

underlying​Peer

let underlyingPeer: MCPeerID

id

let id: String

The unique identifier for the peer.

name

let name: String

The peer's display name.

discovery​Info

let discoveryInfo: [String: String]?

Discovery info provided by the peer.

is​Connected

var isConnected: Bool

true if we are currently connected to this peer.