Inherits from NSObject
Declared in BFSystemSound.h

Overview

This class adds some useful methods to play system sounds

Tasks

Class Methods

disposeSound:

+ (BOOL)disposeSound:(SystemSoundID)soundID
Discussion

Dispose custom sound

Parameters

soundID

SystemSoundID

Return Value

Returns YES if has been disposed, otherwise NO

Declared In

BFSystemSound.h

playCustomSound:

+ (SystemSoundID)playCustomSound:(NSURL *_Nonnull)soundURL
Discussion

Play custom sound with url

Parameters

soundURL

Sound URL

Return Value

Returns the SystemSoundID

Declared In

BFSystemSound.h

playSystemSound:

+ (void)playSystemSound:(AudioID)audioID
Discussion

Play a system sound from the ID

Parameters

audioID

ID of system audio from the AudioID enum

Declared In

BFSystemSound.h

playSystemSoundVibrate

+ (void)playSystemSoundVibrate
Discussion

Play system sound vibrate

Declared In

BFSystemSound.h