Inherits from NSObject
Conforms to AVAudioPlayerDelegate
Declared in TKSoundAlertController.h

Overview

TKSoundAlertController plays simple user interface sounds.

Tasks

Other Methods

Properties

  •   on

    Flag to enable the play of the sound. If off, it will not play the sound. Default is off.

    property

Properties

on

Flag to enable the play of the sound. If off, it will not play the sound. Default is off.

@property (assign, nonatomic, getter=isOn) BOOL on

Discussion

Flag to enable the play of the sound. If off, it will not play the sound. Default is off.

Declared In

TKSoundAlertController.h

Class Methods

playAIF:

Plays a sound file immediately.

+ (void)playAIF:(NSString *)soundName

Parameters

soundName

Plays a sound file with name ‘insert-sound-name’.aif

Discussion

Plays a sound file immediately.

Declared In

TKSoundAlertController.h

playAIFF:

Plays a sound file immediately.

+ (void)playAIFF:(NSString *)soundName

Parameters

soundName

Plays a sound file with name ‘insert-sound-name’.aiff

Discussion

Plays a sound file immediately.

Declared In

TKSoundAlertController.h

playWAV:

Plays a sound file immediately.

+ (void)playWAV:(NSString *)soundName

Parameters

soundName

Plays a sound file with name ‘insert-sound-name’.wav

Discussion

Plays a sound file immediately.

Declared In

TKSoundAlertController.h

sharedInstance

Returns the singleton sound alert controller.

+ (TKSoundAlertController *)sharedInstance

Return Value

The shared instance sound alert controller object.

Discussion

Returns the singleton sound alert controller.

Declared In

TKSoundAlertController.h