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 throwsParameters
- reply:
A closure that the method calls upon completion with the following parameter:
errorDescribes an error if it occurs, or returns
nilif 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.