Instance Method

playPattern(from:)

Plays a plist pattern from the specified URL.

Declaration

func playPattern(from fileURL: URL) throws

Parameters

fileURL

The URL to the AHAP file containing the haptic event dictionary.

outError

An error that contains information about failed pattern playback, or nil if no error occurred.

Discussion

This method blocks processing on the current thread until the pattern has finished playing.

See Also

Playing a Pattern

func playPattern(from: Data)

Plays a plist pattern from the specified data.