AVAudioPlayer.FromUrl Method

Definition

Overloads

Name Description
FromUrl(NSUrl)

Create a new AVAudioPlayer from the specified url.

FromUrl(NSUrl, NSError)

Create a new AVAudioPlayer from the specified url.

FromUrl(NSUrl, AVFileTypes, NSError)

Create a new AVAudioPlayer from the specified url and hint for the file type.

FromUrl(NSUrl, NSString, NSError)

Create a new AVAudioPlayer from the specified url and hint for the file type.

FromUrl(NSUrl)

Create a new AVAudioPlayer from the specified url.

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

Parameters

url
NSUrl

The url of a local audio file.

Returns

A new AVAudioPlayer instance if successful, null otherwise.

Applies to

FromUrl(NSUrl, NSError)

Create a new AVAudioPlayer from the specified url.

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

Parameters

url
NSUrl

The url of a local audio file.

error
NSError

An object describing the error in case an error occurs, null otherwise.

Returns

A new AVAudioPlayer instance if successful, null otherwise.

Applies to

FromUrl(NSUrl, AVFileTypes, NSError)

Create a new AVAudioPlayer from the specified url and hint for the file type.

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

Parameters

url
NSUrl

The url of a local audio file.

fileTypeHint
AVFileTypes

The uniform type identifier for the audio format.

error
NSError

An object describing the error in case an error occurs, null otherwise.

Returns

A new AVAudioPlayer instance if successful, null otherwise.

Applies to

FromUrl(NSUrl, NSString, NSError)

Create a new AVAudioPlayer from the specified url and hint for the file type.

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

Parameters

url
NSUrl

The url of a local audio file.

fileTypeHint
NSString

The uniform type identifier for the audio format.

error
NSError

An object describing the error in case an error occurs, null otherwise.

Returns

A new AVAudioPlayer instance if successful, null otherwise.

Applies to