Skip to content

WebrtcEndpoint

Kenan Genjac edited this page Feb 18, 2025 · 2 revisions

extends Endpoint



init(identity, displayIdentifier)

Description

Creates a new instance of WebrtcEndpoint.

Arguments

  • identity: String - Participant's identity
  • displayName: String? - Participant's display name

Returns

Example

let webrtcEndpoint = WebrtcEndpoint("identity", "displayName");
os_log("WebrtcEndpoint identifier: %@ and displayIdentifier: %@", webrtcEndpoint.identifier(), webrtcEndpoint.displayIdentifier());



identifier()

Description

Returns the value of the identifier on this endpoint represented by the participant's identity.

Arguments

  • none

Returns

  • String - Identifier of the participant on this endpoint

Example

os_log("Identifier of the participant on this endpoint: %@", endpoint.identifier());



displayIdentifier()

Description

Returns the value of the display identifier on this endpoint represented by the participant's display name.

Arguments

  • none

Returns

  • String? - Display identifier of the participant on this endpoint

Example

os_log("Display identifier of the participant on this endpoint: %@", endpoint.displayIdentifier());

Tutorials

Migration guides

Reference documentation

Clone this wiki locally