Alert Sound Identifiers

Identifiers for alert sounds and alternatives to sounds, for use with the AudioServicesPlayAlertSound(_:) function.

Topics

Constants

var kSystemSoundID_Vibrate: SystemSoundID

On the iPhone, use this constant with the AudioServicesPlayAlertSound(_:) function to invoke a brief vibration. On the iPod touch, does nothing.

var kSystemSoundID_UserPreferredAlert: SystemSoundID

On the desktop, use this constant with the AudioServicesPlayAlertSound(_:) function to play the alert specified in the Sound preference pane.

var kSystemSoundID_FlashScreen: SystemSoundID

On the desktop, use this constant with the AudioServicesPlayAlertSound(_:) function to display a flash of light on the screen.

var kUserPreferredAlert: SystemSoundID

Deprecated. Use kSystemSoundID_UserPreferredAlert instead.