Contents

start(attributes:)

Starts a new remote session with the specified attributes.

Declaration

@MainActor static func start(attributes: Attributes) async throws -> RemoteMediaSession<Attributes>

Parameters

  • attributes:

    The attributes that configure the session.

Return Value

A remote session instance.

Discussion

This method registers a session. The attributes are encoded and sent to your app extension, which creates the actual session using your RemoteMediaSessionExtension conformance.