Package org.robovm.apple.avfoundation
Class AVCaptureDevice
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.avfoundation.AVCaptureDevice
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public class AVCaptureDevice extends NSObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAVCaptureDevice.AVCaptureDevicePtrstatic classAVCaptureDevice.NotificationsNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description protectedAVCaptureDevice()protectedAVCaptureDevice(NSObject.Handle h, long handle)protectedAVCaptureDevice(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
AVCaptureDevice
protected AVCaptureDevice() -
AVCaptureDevice
-
AVCaptureDevice
-
-
Method Details
-
getUniqueID
-
getModelID
-
getLocalizedName
-
getManufacturer
- Since:
- Available in iOS 14.0 and later.
-
isConnected
public boolean isConnected() -
isSuspended
public boolean isSuspended()- Since:
- Available in iOS 14.0 and later.
-
getFormats
-
getActiveFormat
-
setActiveFormat
-
getActiveVideoMinFrameDuration
-
setActiveVideoMinFrameDuration
-
getActiveVideoMaxFrameDuration
-
setActiveVideoMaxFrameDuration
-
getPosition
-
getDeviceType
- Since:
- Available in iOS 10.0 and later.
-
getSystemPressureState
- Since:
- Available in iOS 11.1 and later.
-
isVirtualDevice
public boolean isVirtualDevice()- Since:
- Available in iOS 13.0 and later.
-
getConstituentDevices
- Since:
- Available in iOS 13.0 and later.
-
getVirtualDeviceSwitchOverVideoZoomFactors
- Since:
- Available in iOS 13.0 and later.
-
getPrimaryConstituentDeviceSwitchingBehavior
public AVCapturePrimaryConstituentDeviceSwitchingBehavior getPrimaryConstituentDeviceSwitchingBehavior()- Since:
- Available in iOS 15.0 and later.
-
getPrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions
public AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions getPrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions()- Since:
- Available in iOS 15.0 and later.
-
getActivePrimaryConstituentDeviceSwitchingBehavior
public AVCapturePrimaryConstituentDeviceSwitchingBehavior getActivePrimaryConstituentDeviceSwitchingBehavior()- Since:
- Available in iOS 15.0 and later.
-
getActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions
public AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions getActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions()- Since:
- Available in iOS 15.0 and later.
-
getActivePrimaryConstituentDevice
- Since:
- Available in iOS 15.0 and later.
-
getSupportedFallbackPrimaryConstituentDevices
- Since:
- Available in iOS 15.0 and later.
-
getFallbackPrimaryConstituentDevices
- Since:
- Available in iOS 15.0 and later.
-
setFallbackPrimaryConstituentDevices
- Since:
- Available in iOS 15.0 and later.
-
hasFlash
public boolean hasFlash() -
isFlashAvailable
public boolean isFlashAvailable() -
isFlashActive
Deprecated.Deprecated in iOS 10.0. Use AVCapturePhotoOutput's -isFlashScene instead. -
getFlashMode
Deprecated.Deprecated in iOS 10.0. Use AVCapturePhotoSettings.flashMode instead. -
setFlashMode
Deprecated.Deprecated in iOS 10.0. Use AVCapturePhotoSettings.flashMode instead. -
hasTorch
public boolean hasTorch() -
isTorchAvailable
public boolean isTorchAvailable() -
isTorchActive
public boolean isTorchActive() -
getTorchLevel
public float getTorchLevel() -
getTorchMode
-
setTorchMode
-
isLockingFocusWithCustomLensPositionSupported
public boolean isLockingFocusWithCustomLensPositionSupported()- Since:
- Available in iOS 10.0 and later.
-
getFocusMode
-
setFocusMode
-
isFocusPointOfInterestSupported
public boolean isFocusPointOfInterestSupported() -
getFocusPointOfInterest
-
setFocusPointOfInterest
-
isAdjustingFocus
public boolean isAdjustingFocus() -
isAutoFocusRangeRestrictionSupported
public boolean isAutoFocusRangeRestrictionSupported() -
getAutoFocusRangeRestriction
-
setAutoFocusRangeRestriction
-
isSmoothAutoFocusSupported
public boolean isSmoothAutoFocusSupported() -
isSmoothAutoFocusEnabled
public boolean isSmoothAutoFocusEnabled() -
setSmoothAutoFocusEnabled
public void setSmoothAutoFocusEnabled(boolean v) -
automaticallyAdjustsFaceDrivenAutoFocusEnabled
public boolean automaticallyAdjustsFaceDrivenAutoFocusEnabled()- Since:
- Available in iOS 15.4 and later.
-
setAutomaticallyAdjustsFaceDrivenAutoFocusEnabled
public void setAutomaticallyAdjustsFaceDrivenAutoFocusEnabled(boolean v)- Since:
- Available in iOS 15.4 and later.
-
isFaceDrivenAutoFocusEnabled
public boolean isFaceDrivenAutoFocusEnabled()- Since:
- Available in iOS 15.4 and later.
-
setFaceDrivenAutoFocusEnabled
public void setFaceDrivenAutoFocusEnabled(boolean v)- Since:
- Available in iOS 15.4 and later.
-
getLensPosition
public float getLensPosition() -
getMinimumFocusDistance
public long getMinimumFocusDistance()- Since:
- Available in iOS 15.0 and later.
-
getExposureMode
-
setExposureMode
-
isExposurePointOfInterestSupported
public boolean isExposurePointOfInterestSupported() -
getExposurePointOfInterest
-
setExposurePointOfInterest
-
automaticallyAdjustsFaceDrivenAutoExposureEnabled
public boolean automaticallyAdjustsFaceDrivenAutoExposureEnabled()- Since:
- Available in iOS 15.4 and later.
-
setAutomaticallyAdjustsFaceDrivenAutoExposureEnabled
public void setAutomaticallyAdjustsFaceDrivenAutoExposureEnabled(boolean v)- Since:
- Available in iOS 15.4 and later.
-
isFaceDrivenAutoExposureEnabled
public boolean isFaceDrivenAutoExposureEnabled()- Since:
- Available in iOS 15.4 and later.
-
setFaceDrivenAutoExposureEnabled
public void setFaceDrivenAutoExposureEnabled(boolean v)- Since:
- Available in iOS 15.4 and later.
-
getActiveMaxExposureDuration
- Since:
- Available in iOS 12.0 and later.
-
setActiveMaxExposureDuration
- Since:
- Available in iOS 12.0 and later.
-
isAdjustingExposure
public boolean isAdjustingExposure() -
getLensAperture
public float getLensAperture() -
getExposureDuration
-
getISO
public float getISO() -
getExposureTargetOffset
public float getExposureTargetOffset() -
getExposureTargetBias
public float getExposureTargetBias() -
getMinExposureTargetBias
public float getMinExposureTargetBias() -
getMaxExposureTargetBias
public float getMaxExposureTargetBias() -
isGlobalToneMappingEnabled
public boolean isGlobalToneMappingEnabled()- Since:
- Available in iOS 13.0 and later.
-
setGlobalToneMappingEnabled
public void setGlobalToneMappingEnabled(boolean v)- Since:
- Available in iOS 13.0 and later.
-
isLockingWhiteBalanceWithCustomDeviceGainsSupported
public boolean isLockingWhiteBalanceWithCustomDeviceGainsSupported()- Since:
- Available in iOS 10.0 and later.
-
getWhiteBalanceMode
-
setWhiteBalanceMode
-
isAdjustingWhiteBalance
public boolean isAdjustingWhiteBalance() -
getDeviceWhiteBalanceGains
-
getGrayWorldDeviceWhiteBalanceGains
-
getMaxWhiteBalanceGain
public float getMaxWhiteBalanceGain() -
isSubjectAreaChangeMonitoringEnabled
public boolean isSubjectAreaChangeMonitoringEnabled() -
setSubjectAreaChangeMonitoringEnabled
public void setSubjectAreaChangeMonitoringEnabled(boolean v) -
isLowLightBoostSupported
public boolean isLowLightBoostSupported() -
isLowLightBoostEnabled
public boolean isLowLightBoostEnabled() -
automaticallyEnablesLowLightBoostWhenAvailable
public boolean automaticallyEnablesLowLightBoostWhenAvailable() -
setAutomaticallyEnablesLowLightBoostWhenAvailable
public void setAutomaticallyEnablesLowLightBoostWhenAvailable(boolean v) -
getVideoZoomFactor
public double getVideoZoomFactor() -
setVideoZoomFactor
public void setVideoZoomFactor(double v) -
isRampingVideoZoom
public boolean isRampingVideoZoom() -
getDualCameraSwitchOverVideoZoomFactor
Deprecated.Deprecated in iOS 13.0. Use virtualDeviceSwitchOverVideoZoomFactors- Since:
- Available in iOS 11.0 and later.
-
automaticallyAdjustsVideoHDREnabled
public boolean automaticallyAdjustsVideoHDREnabled() -
setAutomaticallyAdjustsVideoHDREnabled
public void setAutomaticallyAdjustsVideoHDREnabled(boolean v) -
isVideoHDREnabled
public boolean isVideoHDREnabled() -
setVideoHDREnabled
public void setVideoHDREnabled(boolean v) -
getActiveColorSpace
- Since:
- Available in iOS 10.0 and later.
-
setActiveColorSpace
- Since:
- Available in iOS 10.0 and later.
-
getActiveDepthDataFormat
- Since:
- Available in iOS 11.0 and later.
-
setActiveDepthDataFormat
- Since:
- Available in iOS 11.0 and later.
-
getActiveDepthDataMinFrameDuration
- Since:
- Available in iOS 12.0 and later.
-
setActiveDepthDataMinFrameDuration
- Since:
- Available in iOS 12.0 and later.
-
getMinAvailableVideoZoomFactor
public double getMinAvailableVideoZoomFactor()- Since:
- Available in iOS 11.0 and later.
-
getMaxAvailableVideoZoomFactor
public double getMaxAvailableVideoZoomFactor()- Since:
- Available in iOS 11.0 and later.
-
isGeometricDistortionCorrectionSupported
public boolean isGeometricDistortionCorrectionSupported()- Since:
- Available in iOS 13.0 and later.
-
isGeometricDistortionCorrectionEnabled
public boolean isGeometricDistortionCorrectionEnabled()- Since:
- Available in iOS 13.0 and later.
-
setGeometricDistortionCorrectionEnabled
public void setGeometricDistortionCorrectionEnabled(boolean v)- Since:
- Available in iOS 13.0 and later.
-
getCenterStageControlMode
- Since:
- Available in iOS 14.5 and later.
-
setCenterStageControlMode
- Since:
- Available in iOS 14.5 and later.
-
isCenterStageEnabled
public static boolean isCenterStageEnabled()- Since:
- Available in iOS 14.5 and later.
-
setCenterStageEnabled
public static void setCenterStageEnabled(boolean v)- Since:
- Available in iOS 14.5 and later.
-
isCenterStageActive
public boolean isCenterStageActive()- Since:
- Available in iOS 14.5 and later.
-
isPortraitEffectEnabled
public static boolean isPortraitEffectEnabled()- Since:
- Available in iOS 15.0 and later.
-
isPortraitEffectActive
public boolean isPortraitEffectActive()- Since:
- Available in iOS 15.0 and later.
-
getPreferredMicrophoneMode
- Since:
- Available in iOS 15.0 and later.
-
getActiveMicrophoneMode
- Since:
- Available in iOS 15.0 and later.
-
WasConnectedNotification
-
WasDisconnectedNotification
-
SubjectAreaDidChangeNotification
-
getMaxAvailableTorchLevel
public static float getMaxAvailableTorchLevel() -
getLensPositionCurrent
public static float getLensPositionCurrent() -
getExposureDurationCurrent
-
getISOCurrent
public static float getISOCurrent() -
getExposureTargetBiasCurrent
public static float getExposureTargetBiasCurrent() -
getWhiteBalanceGainsCurrent
-
hasMediaType
-
lockForConfiguration
- Throws:
NSErrorException
-
unlockForConfiguration
public void unlockForConfiguration() -
supportsAVCaptureSessionPreset
-
getDevices
Deprecated.Deprecated in iOS 10.0. Use AVCaptureDeviceDiscoverySession instead. -
getDevicesForMediaType
Deprecated.Deprecated in iOS 10.0. Use AVCaptureDeviceDiscoverySession instead. -
getDefaultDeviceForMediaType
-
getDeviceWithUniqueID
-
getDefaultDevice
public static AVCaptureDevice getDefaultDevice(String deviceType, AVMediaType mediaType, AVCaptureDevicePosition position)- Since:
- Available in iOS 10.0 and later.
-
setPrimaryConstituentDeviceSwitchingBehavior
public void setPrimaryConstituentDeviceSwitchingBehavior(AVCapturePrimaryConstituentDeviceSwitchingBehavior switchingBehavior, AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions restrictedSwitchingBehaviorConditions)- Since:
- Available in iOS 15.0 and later.
-
isFlashModeSupported
Deprecated.Deprecated in iOS 10.0. Use AVCapturePhotoOutput's -supportedFlashModes instead. -
isTorchModeSupported
-
setTorchModeOn
- Throws:
NSErrorException
-
isFocusModeSupported
-
setFocusModeLocked
-
isExposureModeSupported
-
setExposureModeCustom
-
setExposureTargetBias
-
isWhiteBalanceModeSupported
-
setWhiteBalanceModeLocked
public void setWhiteBalanceModeLocked(AVCaptureWhiteBalanceGains whiteBalanceGains, VoidBlock1<CMTime> handler) -
convertDeviceWhiteBalanceGainsToChromaticityValues
public AVCaptureWhiteBalanceChromaticityValues convertDeviceWhiteBalanceGainsToChromaticityValues(AVCaptureWhiteBalanceGains whiteBalanceGains) -
convertChromaticityValuesToDeviceWhiteBalanceGains
public AVCaptureWhiteBalanceGains convertChromaticityValuesToDeviceWhiteBalanceGains(AVCaptureWhiteBalanceChromaticityValues chromaticityValues) -
convertDeviceWhiteBalanceGainsToTemperatureAndTintValues
public AVCaptureWhiteBalanceTemperatureAndTintValues convertDeviceWhiteBalanceGainsToTemperatureAndTintValues(AVCaptureWhiteBalanceGains whiteBalanceGains) -
convertTemperatureAndTintValuesToDeviceWhiteBalanceGains
public AVCaptureWhiteBalanceGains convertTemperatureAndTintValuesToDeviceWhiteBalanceGains(AVCaptureWhiteBalanceTemperatureAndTintValues tempAndTintValues) -
rampToVideoZoomFactor
public void rampToVideoZoomFactor(double factor, float rate) -
cancelVideoZoomRamp
public void cancelVideoZoomRamp() -
getAuthorizationStatusForMediaType
-
requestAccessForMediaType
-
getExtrinsicMatrix
- Since:
- Available in iOS 13.0 and later.
-
showSystemUserInterface
- Since:
- Available in iOS 15.0 and later.
-