One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVMIDIPlayer

class · iOS 8.0+ · SDK 27.1

class AVMIDIPlayer

Members (11)

init · iOS 8.0+

init

TypeScript
static initContentsOfSoundBankURL(inURL: string, bankURL?: (string) | null): AVMIDIPlayer
Swift declaration
init(contentsOf inURL: URL, soundBankURL bankURL: URL?) throws
init · iOS 8.0+

init

TypeScript
static initDataSoundBankURL(data: ArrayBuffer, bankURL?: (string) | null): AVMIDIPlayer
Swift declaration
init(data: Data, soundBankURL bankURL: URL?) throws
method · iOS 8.0+

play

TypeScript
play(completionHandler?: ((() => void)) | null): void
Swift declaration
func play() async
method · iOS 8.0+

prepareToPlay

TypeScript
prepareToPlay(): void
Swift declaration
func prepareToPlay()
method · iOS 8.0+

stop

TypeScript
stop(): void
Swift declaration
func stop()
get · iOS 8.0+

currentPosition

TypeScript
get currentPosition(): number
Swift declaration
var currentPosition: TimeInterval { get set }
set · iOS 8.0+

currentPosition

TypeScript
set currentPosition(value: number)
Swift declaration
var currentPosition: TimeInterval { get set }
get · iOS 8.0+

duration

TypeScript
get duration(): number
Swift declaration
var duration: TimeInterval { get }
get · iOS 8.0+

isPlaying

TypeScript
get isPlaying(): boolean
Swift declaration
var isPlaying: Bool { get }
get · iOS 8.0+

rate

TypeScript
get rate(): number
Swift declaration
var rate: Float { get set }
set · iOS 8.0+

rate

TypeScript
set rate(value: number)
Swift declaration
var rate: Float { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVMIDIPlayer.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All AVFAudio types →