Instance Method

unregisterAudioResource(_:)

Unregisters a previously registered external audio file.

Declaration

func unregisterAudioResource(_ resourceID: CHHapticAudioResourceID) throws

Parameters

resourceID

The ID of the audio resource you'd like to unregister.

outError

An error that contains information about failed resource unregistration, or nil if no error occurred.

See Also

Registering Audio Resources

func registerAudioResource(URL, options: [AnyHashable : Any]) -> CHHapticAudioResourceID

Registers an external audio file for use as a custom waveform.

typealias CHHapticAudioResourceID

A type alias used to register an ID for a custom audio resource.