Contents

requestOpenSession(options:completion:)

Requests to open a session on the device, then executes the completion handler.

Declaration

func requestOpenSession(options: [ICSessionOptions : Any]? = nil, completion: @escaping  @Sendable ((any Error)?) -> Void)
func requestOpenSession(options: [ICSessionOptions : Any]? = nil) async throws

Discussion

Execution of the completion block occurs on the calling thread.

See Also

Managing a Device