Type Alias

CHHapticAudioResourceID

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

Declaration

typealias CHHapticAudioResourceID = Int

Discussion

The audio resource ID is an identifier for previously registered, file-loaded audio waveforms, which you can use to create custom event types for your app.

See Also

Registering Audio Resources

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

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

func unregisterAudioResource(CHHapticAudioResourceID)

Unregisters a previously registered external audio file.