Contents

stop(completionHandler:)

Asynchronously stops the haptic engine and executes the completion handler once the engine has stopped.

Declaration

func stop(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
func stop() async throws

Parameters

  • completionHandler:

    The completion handler to execute after the engine stops.

Mentioned in

Discussion

See Also

Starting and Stopping the Haptic Engine