One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVAudioRecorder

class · iOS 3.0+ · SDK 27.1

class AVAudioRecorder

Members (25)

method · iOS 3.0+

averagePower

TypeScript
averagePower(channelNumber: number): number
Swift declaration
func averagePower(forChannel channelNumber: Int) -> Float
method · iOS 3.0+

deleteRecording

TypeScript
deleteRecording(): boolean
Swift declaration
func deleteRecording() -> Bool
init · iOS 10.0+

init

TypeScript
static initUrlFormat(url: string, format: AVAudioFormat): AVAudioRecorder
Swift declaration
init(url: URL, format: AVAudioFormat) throws
init · iOS 3.0+

init

TypeScript
static initUrlSettings(url: string, settings: Record<string, unknown>): AVAudioRecorder
Swift declaration
init(url: URL, settings: [String : Any]) throws
method · iOS 3.0+

pause

TypeScript
pause(): void
Swift declaration
func pause()
method · iOS 3.0+

peakPower

TypeScript
peakPower(channelNumber: number): number
Swift declaration
func peakPower(forChannel channelNumber: Int) -> Float
method · iOS 3.0+

prepareToRecord

TypeScript
prepareToRecord(): boolean
Swift declaration
func prepareToRecord() -> Bool
method · iOS 3.0+

record

TypeScript
record(): boolean
Swift declaration
func record() -> Bool
method · iOS 6.0+

record

TypeScript
recordAtTime(time: number): boolean
Swift declaration
func record(atTime time: TimeInterval) -> Bool
method · iOS 6.0+

record

TypeScript
recordAtTimeForDuration(time: number, duration: number): boolean
Swift declaration
func record(atTime time: TimeInterval, forDuration duration: TimeInterval) -> Bool
method · iOS 3.0+

record

TypeScript
recordForDuration(duration: number): boolean
Swift declaration
func record(forDuration duration: TimeInterval) -> Bool
method · iOS 3.0+

stop

TypeScript
stop(): void
Swift declaration
func stop()
method · iOS 3.0+

updateMeters

TypeScript
updateMeters(): void
Swift declaration
func updateMeters()
get · iOS 7.0+

channelAssignments

TypeScript
get channelAssignments(): (Array<AVAudioSessionChannelDescription>) | null
Swift declaration
var channelAssignments: [AVAudioSessionChannelDescription]? { get set }
set · iOS 7.0+

channelAssignments

TypeScript
set channelAssignments(value: (Array<AVAudioSessionChannelDescription>) | null)
Swift declaration
var channelAssignments: [AVAudioSessionChannelDescription]? { get set }
get · iOS 3.0+

currentTime

TypeScript
get currentTime(): number
Swift declaration
var currentTime: TimeInterval { get }
get · iOS 3.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any AVAudioRecorderDelegate)? { get set }
set · iOS 3.0+

delegate

TypeScript
set delegate(value: (Implements<AVAudioRecorderDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any AVAudioRecorderDelegate)? { get set }
get · iOS 6.0+

deviceCurrentTime

TypeScript
get deviceCurrentTime(): number
Swift declaration
var deviceCurrentTime: TimeInterval { get }
get · iOS 10.0+

format

TypeScript
get format(): AVAudioFormat
Swift declaration
var format: AVAudioFormat { get }
get · iOS 3.0+

isMeteringEnabled

TypeScript
get isMeteringEnabled(): boolean
Swift declaration
var isMeteringEnabled: Bool { get set }
set · iOS 3.0+

isMeteringEnabled

TypeScript
set isMeteringEnabled(value: boolean)
Swift declaration
var isMeteringEnabled: Bool { get set }
get · iOS 3.0+

isRecording

TypeScript
get isRecording(): boolean
Swift declaration
var isRecording: Bool { get }
get · iOS 3.0+

settings

TypeScript
get settings(): Record<string, unknown>
Swift declaration
var settings: [String : Any] { get }
get · iOS 3.0+

url

TypeScript
get url(): string
Swift declaration
var url: URL { get }

Skipped declarations

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

AVAudioRecorder.init()

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

All AVFAudio types →