Instance Method

playPattern(from:)

Plays a plist pattern from the specified data.

Declaration

func playPattern(from data: Data) throws

Parameters

data

The raw data containing the haptic pattern, structured as an AHAP 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: URL)

Plays a plist pattern from the specified URL.