Contents

displayName(forPeer:)

Returns a user-readable name for a peer.

Declaration

func displayName(forPeer peerID: String!) -> String!

Parameters

  • peerID:

    A string that uniquely identifies a peer.

Return Value

The name for the peer, or nil if peerID is not associated with a visible peer.

Discussion

The display name is used to populate your user interface with the names of other peers visible to the session.

See Also

Related Documentation

Obtaining Information About Other Peers