Contents

connect(replyHandler:)

Connects the virtual controller to the device and displays it on the screen.

Declaration

func connect(replyHandler reply: (@Sendable ((any Error)?) -> Void)? = nil)
func connect() async throws

Parameters

  • reply:

    A closure that the method calls upon completion with the following parameter:

    error

    Describes an error if it occurs, or returns nil if the operation completes.

Mentioned in

Discussion

After you invoke this method, the framework calls any input handlers you set for the elements, or you can poll the elements for their values.

See Also

Connecting and displaying virtual controllers