RSDSound
public struct RSDSound
RSDSound
contains sound file URLs.
-
The name of the sound.
Declaration
Swift
public let name: String
-
The url for the sound (if any).
Declaration
Swift
public let url: URL?
-
Initializer for initializing system library UISounds.
Declaration
Swift
public init(name: String)
Parameters
name
The name of the sound. This is also the name of the .caf file for that sound in the library.
-
Initializer for creating a sound with a custom URL.
Declaration
Swift
public init(url: URL)
Parameters
url
The url with the path to the sound file.
-
The alarm sound.
Declaration
Swift
public static let alarm: RSDSound
-
A short low-high beep sound.
Declaration
Swift
public static let short_low_high: RSDSound
-
A short double-high beep sound.
Declaration
Swift
public static let short_double_high: RSDSound
-
A short double-low beep sound.
Declaration
Swift
public static let short_double_low: RSDSound
-
The
photo shutter
sound played when taking a picture.Declaration
Swift
public static let photoShutter: RSDSound
-
A key tap sound.
Declaration
Swift
public static let tock: RSDSound
-
A key tap sound.
Declaration
Swift
public static let tink: RSDSound
-
The lock screen sound.
Declaration
Swift
public static let lock: RSDSound