Upravit

Sdílet prostřednictvím


AVAudioPlayer.FromData Method

Definition

Overloads

FromData(NSData, NSError)

Creates an audio player that plays music from an NSData source.

FromData(NSData)

Creates an audio player that plays music from an NSData source.

FromData(NSData, NSError)

Creates an audio player that plays music from an NSData source.

public static AVFoundation.AVAudioPlayer FromData (Foundation.NSData data, out Foundation.NSError error);
static member FromData : Foundation.NSData *  -> AVFoundation.AVAudioPlayer

Parameters

data
NSData

Audio data, in a format supported by the native operating system.

error
NSError

Used to return error codes

Returns

null on error, or an instance of the AVAudioPlayer on success.

Applies to

FromData(NSData)

Creates an audio player that plays music from an NSData source.

public static AVFoundation.AVAudioPlayer FromData (Foundation.NSData data);
static member FromData : Foundation.NSData -> AVFoundation.AVAudioPlayer

Parameters

data
NSData

Audio data, in a format supported by the native operating system.

Returns

null on error, or an instance of the AVAudioPlayer on success.

Applies to