Edit

Share via


SystemSound Constructors

Definition

Overloads

SystemSound(NSUrl)

Create a system sound from a local file.

SystemSound(UInt32)

SystemSound(NSUrl)

Create a system sound from a local file.

public SystemSound (Foundation.NSUrl fileUrl);
new AudioToolbox.SystemSound : Foundation.NSUrl -> AudioToolbox.SystemSound

Parameters

fileUrl
NSUrl

The url to the local file.

Remarks

The system sounds are limited to 30 seconds or less. If there is an error, this constructor will throw an exception. If you want to avoid exceptions, and instead get a null on error, call the FromFile methods.

Applies to

SystemSound(UInt32)

public SystemSound (uint soundId);
new AudioToolbox.SystemSound : uint32 -> AudioToolbox.SystemSound

Parameters

soundId
UInt32

Applies to