Instance Method

stop(completionHandler:)

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

Declaration

func stop(completionHandler: CHHapticEngine.CompletionHandler? = nil)

Parameters

completionHandler

The completion handler to execute after the engine stops.

See Also

Starting and Stopping the Haptic Engine

func start()

Synchronously starts the haptic engine.

func start(completionHandler: CHHapticEngine.CompletionHandler?)

Asynchronously starts the haptic engine and executes the completion handler once the engine has started.

typealias CHHapticEngine.CompletionHandler

A typealias for the block that the engine calls after starting or stopping.