AVAudioPlayer.FromUrl Method

Definition

Overloads

FromUrl(NSUrl)

Creates a new instance of the AVAudioPlayer.

FromUrl(NSUrl, NSError)

Creates a new instance of the AVAudioPlayer.

FromUrl(NSUrl)

Creates a new instance of the AVAudioPlayer.

public static AVFoundation.AVAudioPlayer FromUrl (Foundation.NSUrl url);
static member FromUrl : Foundation.NSUrl -> AVFoundation.AVAudioPlayer

Parameters

url
NSUrl

Points to the file location to play

Returns

Null on error, with or an instance of the player on success.

Applies to

FromUrl(NSUrl, NSError)

Creates a new instance of the AVAudioPlayer.

public static AVFoundation.AVAudioPlayer FromUrl (Foundation.NSUrl url, out Foundation.NSError error);
static member FromUrl : Foundation.NSUrl *  -> AVFoundation.AVAudioPlayer

Parameters

url
NSUrl

Points to the file location to play

error
NSError

Return value for error.

Returns

Null on error with the details stored on the error parameter, or an instance of the player on success.

Applies to