Package apple.avfoundation
Class AVAudioRecorder
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAudioRecorder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVAudioRecorder(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVAudioRecorderalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)floataveragePowerForChannel(long channelNumber)returns average power in decibels for a given channelstatic voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)NSArray<? extends AVAudioSessionChannelDescription>channelAssignments()Array of AVAudioSessionChannelDescription objectsstatic NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()doublecurrentTime()get the current time of the recording - only valid while recordingstatic java.lang.StringdebugDescription_static()AVAudioRecorderDelegatedelegate()the delegate will be sent messages from the AVAudioRecorderDelegate protocolbooleandeleteRecording()delete the recorded file. recorder must be stopped. returns NO on failure.static java.lang.Stringdescription_static()doubledeviceCurrentTime()get the device current time - always validAVAudioFormatformat()this object is fully valid only when prepareToRecord has been calledstatic longhash_static()AVAudioRecorderinit()AVAudioRecorderinitWithURLFormatError(NSURL url, AVAudioFormat format, org.moe.natj.general.ptr.Ptr<NSError> outError)The file type to create can be set through the corresponding settings key.AVAudioRecorderinitWithURLSettingsError(NSURL url, NSDictionary<java.lang.String,?> settings, org.moe.natj.general.ptr.Ptr<NSError> outError)The file type to create can be set through the corresponding settings key.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisMeteringEnabled()turns level metering on or off. default is off.booleanisRecording()is it recording or not?static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()voidpause()pause recordingfloatpeakPowerForChannel(long channelNumber)returns peak power in decibels for a given channelbooleanprepareToRecord()creates the file and gets ready to record. happens automatically on record.booleanrecord()start or resume recording to file.booleanrecordAtTime(double time)start recording at specified time in the future. time is an absolute time based on and greater than deviceCurrentTime.booleanrecordAtTimeForDuration(double time, double duration)record a file of a specified duration starting at specified time. time is an absolute time based on and greater than deviceCurrentTime.booleanrecordForDuration(double duration)record a file of a specified duration. the recorder will stop when it has recorded this length of audiostatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetChannelAssignments(NSArray<? extends AVAudioSessionChannelDescription> value)Array of AVAudioSessionChannelDescription objectsvoidsetDelegate(AVAudioRecorderDelegate value)the delegate will be sent messages from the AVAudioRecorderDelegate protocolvoidsetDelegate_unsafe(AVAudioRecorderDelegate value)the delegate will be sent messages from the AVAudioRecorderDelegate protocolvoidsetMeteringEnabled(boolean value)turns level metering on or off. default is off.NSDictionary<java.lang.String,?>settings()these settings are fully valid only when prepareToRecord has been calledstatic voidsetVersion_static(long aVersion)voidstop()stops recording. closes the file.static org.moe.natj.objc.Classsuperclass_static()voidupdateMeters()call to refresh meter valuesNSURLurl()URL of the recorded filestatic longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVAudioRecorder alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
averagePowerForChannel
public float averagePowerForChannel(long channelNumber)
returns average power in decibels for a given channel
-
channelAssignments
public NSArray<? extends AVAudioSessionChannelDescription> channelAssignments()
Array of AVAudioSessionChannelDescription objects
-
currentTime
public double currentTime()
get the current time of the recording - only valid while recording
-
delegate
public AVAudioRecorderDelegate delegate()
the delegate will be sent messages from the AVAudioRecorderDelegate protocol
-
deleteRecording
public boolean deleteRecording()
delete the recorded file. recorder must be stopped. returns NO on failure.
-
deviceCurrentTime
public double deviceCurrentTime()
get the device current time - always valid
-
format
public AVAudioFormat format()
this object is fully valid only when prepareToRecord has been called
-
init
public AVAudioRecorder init()
-
initWithURLFormatError
public AVAudioRecorder initWithURLFormatError(NSURL url, AVAudioFormat format, org.moe.natj.general.ptr.Ptr<NSError> outError)
The file type to create can be set through the corresponding settings key. If not set, it will be inferred from the file extension. Will overwrite a file at the specified url if a file exists.
-
initWithURLSettingsError
public AVAudioRecorder initWithURLSettingsError(NSURL url, NSDictionary<java.lang.String,?> settings, org.moe.natj.general.ptr.Ptr<NSError> outError)
The file type to create can be set through the corresponding settings key. If not set, it will be inferred from the file extension. Will overwrite a file at the specified url if a file exists.
-
isMeteringEnabled
public boolean isMeteringEnabled()
turns level metering on or off. default is off.
-
setMeteringEnabled
public void setMeteringEnabled(boolean value)
turns level metering on or off. default is off.
-
isRecording
public boolean isRecording()
is it recording or not?
-
pause
public void pause()
pause recording
-
peakPowerForChannel
public float peakPowerForChannel(long channelNumber)
returns peak power in decibels for a given channel
-
prepareToRecord
public boolean prepareToRecord()
creates the file and gets ready to record. happens automatically on record.
-
record
public boolean record()
start or resume recording to file.
-
recordAtTime
public boolean recordAtTime(double time)
start recording at specified time in the future. time is an absolute time based on and greater than deviceCurrentTime.
-
recordAtTimeForDuration
public boolean recordAtTimeForDuration(double time, double duration)record a file of a specified duration starting at specified time. time is an absolute time based on and greater than deviceCurrentTime.
-
recordForDuration
public boolean recordForDuration(double duration)
record a file of a specified duration. the recorder will stop when it has recorded this length of audio
-
setChannelAssignments
public void setChannelAssignments(NSArray<? extends AVAudioSessionChannelDescription> value)
Array of AVAudioSessionChannelDescription objects
-
setDelegate_unsafe
public void setDelegate_unsafe(AVAudioRecorderDelegate value)
the delegate will be sent messages from the AVAudioRecorderDelegate protocol
-
setDelegate
public void setDelegate(AVAudioRecorderDelegate value)
the delegate will be sent messages from the AVAudioRecorderDelegate protocol
-
settings
public NSDictionary<java.lang.String,?> settings()
these settings are fully valid only when prepareToRecord has been called
-
stop
public void stop()
stops recording. closes the file.
-
updateMeters
public void updateMeters()
call to refresh meter values
-
url
public NSURL url()
URL of the recorded file
-
-