Type Alias

CHHapticAdvancedPatternPlayerCompletionHandler

A typealias for the completion handler to run after a haptic finishes playback.

Declaration

typealias CHHapticAdvancedPatternPlayerCompletionHandler = (Error?) -> Void

See Also

Setting Playback Properties

var loopEnabled: Bool

A Boolean that determines whether the haptic repeats itself on completion.

Required.

var loopEnd: TimeInterval

The time at which to end looping haptic playback.

Required.

var playbackRate: Float

The playback rate of the haptic player.

Required.

var completionHandler: CHHapticAdvancedPatternPlayerCompletionHandler

A completion block that runs after the haptic finishes playing.

Required.