SBSDKSoundController
@interface SBSDKSoundController : NSObject
A class to manage playback of sounds and vibration.
-
Plays a standard bleep sound.
Declaration
Objective-C
- (void)playBleepSound;
Swift
func playBleepSound()
-
Plays a custom sound loaded from a given URL.
- - parameter: soundURL URL to the sound.
Declaration
Objective-C
- (void)playCustomSoundFromURL:(NSURL *)soundURL;
Swift
func playCustomSound(from soundURL: URL!)
-
Initiates a short vibration of the device. Can be used to give a haptic feedback.
Declaration
Objective-C
- (void)vibrate;
Swift
func vibrate()