public class AVCaptureVideoPreviewLayer extends CALayer
A CoreAnimation layer subclass for previewing the visual output of an AVCaptureSession.
An AVCaptureVideoPreviewLayer instance is a subclass of CALayer and is therefore suitable for insertion in a layer hierarchy as part of a graphical interface. One creates an AVCaptureVideoPreviewLayer instance with the capture session to be previewed, using +layerWithSession: or -initWithSession:. Using the @"videoGravity" property, one can influence how content is viewed relative to the layer bounds. On some hardware configurations, the orientation of the layer can be manipulated using @"orientation" and @"mirrored".
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
AVCaptureVideoPreviewLayer(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static AVCaptureVideoPreviewLayer |
alloc() |
static AVCaptureVideoPreviewLayer |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
automaticallyAdjustsMirroring()
Deprecated.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
CGPoint |
captureDevicePointOfInterestForPoint(CGPoint pointInLayer)
captureDevicePointOfInterestForPoint:
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
AVCaptureConnection |
connection()
[@property] connection
|
static double |
cornerCurveExpansionFactor(java.lang.String curve) |
static java.lang.String |
debugDescription_static() |
static CAAction |
defaultActionForKey(java.lang.String event) |
static java.lang.Object |
defaultValueForKey(java.lang.String key) |
static java.lang.String |
description_static() |
static long |
hash_static() |
AVCaptureVideoPreviewLayer |
init()
The designated initializer.
|
AVCaptureVideoPreviewLayer |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
AVCaptureVideoPreviewLayer |
initWithLayer(java.lang.Object layer)
This initializer is used by CoreAnimation to create shadow copies of
layers, e.g.
|
AVCaptureVideoPreviewLayer |
initWithSession(AVCaptureSession session)
initWithSession:
|
AVCaptureVideoPreviewLayer |
initWithSessionWithNoConnection(AVCaptureSession session)
initWithSessionWithNoConnection:
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isMirrored()
Deprecated.
|
boolean |
isMirroringSupported()
Deprecated.
|
boolean |
isOrientationSupported()
Deprecated.
|
boolean |
isPreviewing()
[@property] previewing
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static AVCaptureVideoPreviewLayer |
layer() |
static AVCaptureVideoPreviewLayer |
layerWithSession(AVCaptureSession session)
layerWithSession:
|
static AVCaptureVideoPreviewLayer |
layerWithSessionWithNoConnection(AVCaptureSession session)
layerWithSessionWithNoConnection:
|
CGRect |
metadataOutputRectOfInterestForRect(CGRect rectInLayerCoordinates)
metadataOutputRectOfInterestForRect:
|
static boolean |
needsDisplayForKey(java.lang.String key) |
static AVCaptureVideoPreviewLayer |
new_objc() |
long |
orientation()
Deprecated.
|
CGPoint |
pointForCaptureDevicePointOfInterest(CGPoint captureDevicePointOfInterest)
pointForCaptureDevicePointOfInterest:
|
CGRect |
rectForMetadataOutputRectOfInterest(CGRect rectInMetadataOutputCoordinates)
rectForMetadataOutputRectOfInterest:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
AVCaptureSession |
session()
[@property] session
|
void |
setAutomaticallyAdjustsMirroring(boolean value)
Deprecated.
|
void |
setMirrored(boolean value)
Deprecated.
|
void |
setOrientation(long value)
Deprecated.
|
void |
setSession(AVCaptureSession value)
[@property] session
|
void |
setSessionWithNoConnection(AVCaptureSession session)
method setSessionWithNoConnection:
|
static void |
setVersion_static(long aVersion) |
void |
setVideoGravity(java.lang.String value)
[@property] videoGravity
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
AVMetadataObject |
transformedMetadataObjectForMetadataObject(AVMetadataObject metadataObject)
transformedMetadataObjectForMetadataObject:
|
static long |
version_static() |
java.lang.String |
videoGravity()
[@property] videoGravity
|
actionForKey, actions, addAnimationForKey, addSublayer, affineTransform, allowsEdgeAntialiasing, allowsGroupOpacity, anchorPoint, anchorPointZ, animationForKey, animationKeys, autoreverses, backgroundColor, backgroundFilters, beginTime, borderColor, borderWidth, bounds, compositingFilter, containsPoint, contents, contentsAreFlipped, contentsCenter, contentsFormat, contentsGravity, contentsRect, contentsScale, convertPointFromLayer, convertPointToLayer, convertRectFromLayer, convertRectToLayer, convertTimeFromLayer, convertTimeToLayer, cornerCurve, cornerRadius, delegate, display, displayIfNeeded, drawInContext, drawsAsynchronously, duration, edgeAntialiasingMask, encodeWithCoder, fillMode, filters, frame, hitTest, insertSublayerAbove, insertSublayerAtIndex, insertSublayerBelow, isDoubleSided, isGeometryFlipped, isHidden, isOpaque, layoutIfNeeded, layoutSublayers, magnificationFilter, mask, maskedCorners, masksToBounds, minificationFilter, minificationFilterBias, modelLayer, name, needsDisplay, needsDisplayOnBoundsChange, needsLayout, opacity, position, preferredFrameSize, presentationLayer, rasterizationScale, removeAllAnimations, removeAnimationForKey, removeFromSuperlayer, renderInContext, repeatCount, repeatDuration, replaceSublayerWith, scrollPoint, scrollRectToVisible, setActions, setAffineTransform, setAllowsEdgeAntialiasing, setAllowsGroupOpacity, setAnchorPoint, setAnchorPointZ, setAutoreverses, setBackgroundColor, setBackgroundFilters, setBeginTime, setBorderColor, setBorderWidth, setBounds, setCompositingFilter, setContents, setContentsCenter, setContentsFormat, setContentsGravity, setContentsRect, setContentsScale, setCornerCurve, setCornerRadius, setDelegate_unsafe, setDelegate, setDoubleSided, setDrawsAsynchronously, setDuration, setEdgeAntialiasingMask, setFillMode, setFilters, setFrame, setGeometryFlipped, setHidden, setMagnificationFilter, setMask, setMaskedCorners, setMasksToBounds, setMinificationFilter, setMinificationFilterBias, setName, setNeedsDisplay, setNeedsDisplayInRect, setNeedsDisplayOnBoundsChange, setNeedsLayout, setOpacity, setOpaque, setPosition, setRasterizationScale, setRepeatCount, setRepeatDuration, setShadowColor, setShadowOffset, setShadowOpacity, setShadowPath, setShadowRadius, setShouldRasterize, setSpeed, setStyle, setSublayers, setSublayerTransform, setTimeOffset, setTransform, setZPosition, shadowColor, shadowOffset, shadowOpacity, shadowPath, shadowRadius, shouldArchiveValueForKey, shouldRasterize, speed, style, sublayers, sublayerTransform, superlayer, timeOffset, transform, visibleRect, zPositionaccessibilityActivate, 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, willChangeValuesAtIndexesForKeyprotected AVCaptureVideoPreviewLayer(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static AVCaptureVideoPreviewLayer alloc()
public static AVCaptureVideoPreviewLayer allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static CAAction defaultActionForKey(java.lang.String event)
public static java.lang.Object defaultValueForKey(java.lang.String key)
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static AVCaptureVideoPreviewLayer layer()
public static AVCaptureVideoPreviewLayer layerWithSession(AVCaptureSession session)
Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.
session - The AVCaptureSession instance to be previewed.public static AVCaptureVideoPreviewLayer layerWithSessionWithNoConnection(AVCaptureSession session)
Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession, but creates no connections to any of the session's eligible video inputs. Only use this initializer if you intend to manually form a connection between a desired AVCaptureInputPort and the receiver using AVCaptureSession's -addConnection: method.
session - The AVCaptureSession instance to be previewed.public static boolean needsDisplayForKey(java.lang.String key)
public static AVCaptureVideoPreviewLayer new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
@Deprecated public boolean automaticallyAdjustsMirroring()
Specifies whether or not the value of @"mirrored" can change based on configuration of the session.
For some session configurations, preview will be mirrored by default. When the value of this property is YES, the value of @"mirrored" may change depending on the configuration of the session, for example after switching to a different AVCaptureDeviceInput. The default value is YES. This property is deprecated. Use AVCaptureConnection's -automaticallyAdjustsVideoMirroring instead.
public CGPoint captureDevicePointOfInterestForPoint(CGPoint pointInLayer)
Converts a point in layer coordinates to a point of interest in the coordinate space of the capture device providing input to the layer.
AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the receiver to a point of interest in the coordinate space of the AVCaptureDevice providing input to the receiver. The conversion takes frameSize and videoGravity into consideration.
pointInLayer - A CGPoint in layer coordinates.public AVCaptureConnection connection()
The AVCaptureConnection instance describing the AVCaptureInputPort to which the receiver is connected.
When calling initWithSession: or setSession: with a valid AVCaptureSession instance, a connection is formed to the first eligible video AVCaptureInput. If the receiver is detached from a session, the connection property becomes nil.
public AVCaptureVideoPreviewLayer init()
CALayerpublic AVCaptureVideoPreviewLayer initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class CALayerpublic AVCaptureVideoPreviewLayer initWithLayer(java.lang.Object layer)
CALayerinitWithLayer in class CALayerpublic AVCaptureVideoPreviewLayer initWithSession(AVCaptureSession session)
Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.
session - The AVCaptureSession instance to be previewed.public AVCaptureVideoPreviewLayer initWithSessionWithNoConnection(AVCaptureSession session)
Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession, but creates no connections to any of the session's eligible video inputs. Only use this initializer if you intend to manually form a connection between a desired AVCaptureInputPort and the receiver using AVCaptureSession's -addConnection: method.
session - The AVCaptureSession instance to be previewed.@Deprecated public boolean isMirrored()
Specifies whether or not the preview is flipped over a vertical axis.
For most applications, it is unnecessary to manipulate preview mirroring manually if @"automaticallyAdjustsMirroring" is set to YES. The value of @"automaticallyAdjustsMirroring" must be NO in order to set @"mirrored". The value of @"mirroringSupported" must be YES in order to set @"mirrored". An exception will be raised if the value of @"mirrored" is mutated without respecting these requirements. This property is deprecated. Use AVCaptureConnection's -videoMirrored instead.
@Deprecated public void setMirrored(boolean value)
Specifies whether or not the preview is flipped over a vertical axis.
For most applications, it is unnecessary to manipulate preview mirroring manually if @"automaticallyAdjustsMirroring" is set to YES. The value of @"automaticallyAdjustsMirroring" must be NO in order to set @"mirrored". The value of @"mirroringSupported" must be YES in order to set @"mirrored". An exception will be raised if the value of @"mirrored" is mutated without respecting these requirements. This property is deprecated. Use AVCaptureConnection's -videoMirrored instead.
@Deprecated public boolean isMirroringSupported()
Specifies whether or not the preview layer supports mirroring.
Mirroring is not supported on all hardware configurations. An application should check the value of @"mirroringSupported" before attempting to manipulate mirroring on the receiver. This property is deprecated. Use AVCaptureConnection's -isVideoMirroringSupported instead.
@Deprecated public boolean isOrientationSupported()
Specifies whether or not the preview layer supports orientation.
Changes in orientation are not supported on all hardware configurations. An application should check the value of @"orientationSupported" before attempting to manipulate the orientation of the receiver. This property is deprecated. Use AVCaptureConnection's -isVideoOrientationSupported instead.
public CGRect metadataOutputRectOfInterestForRect(CGRect rectInLayerCoordinates)
Converts a rectangle in layer coordinates to a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose capture device is providing input to the layer.
AVCaptureMetadataOutput rectOfInterest is expressed as a CGRect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a rectangle in the coordinate space of the receiver to a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose AVCaptureDevice is providing input to the receiver. The conversion takes frame size and videoGravity into consideration.
rectInLayerCoordinates - A CGRect in layer coordinates.@Deprecated public long orientation()
Specifies the orientation of the preview layer.
AVCaptureVideoOrientation and its constants are defined in AVCaptureSession.h. The value of @"orientationSupported" must be YES in order to set @"orientation". An exception will be raised if this requirement is ignored. This property is deprecated. Use AVCaptureConnection's -videoOrientation instead.
public CGPoint pointForCaptureDevicePointOfInterest(CGPoint captureDevicePointOfInterest)
Converts a point of interest in the coordinate space of the capture device providing input to the layer to a point in layer coordinates.
AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the AVCaptureDevice providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
captureDevicePointOfInterest - A CGPoint in the coordinate space of the capture device providing input to the layer.public CGRect rectForMetadataOutputRectOfInterest(CGRect rectInMetadataOutputCoordinates)
Converts a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose capture device is providing input to the layer to a rectangle in layer coordinates.
AVCaptureMetadataOutput rectOfInterest is expressed as a CGRect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a rectangle in the coordinate space of an AVCaptureMetadataOutput whose AVCaptureDevice is providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
rectInMetadataOutputCoordinates - A CGRect in the coordinate space of the metadata output whose capture device is providing input to the layer.public AVCaptureSession session()
The AVCaptureSession instance being previewed by the receiver.
The session is retained by the preview layer.
@Deprecated public void setAutomaticallyAdjustsMirroring(boolean value)
Specifies whether or not the value of @"mirrored" can change based on configuration of the session.
For some session configurations, preview will be mirrored by default. When the value of this property is YES, the value of @"mirrored" may change depending on the configuration of the session, for example after switching to a different AVCaptureDeviceInput. The default value is YES. This property is deprecated. Use AVCaptureConnection's -automaticallyAdjustsVideoMirroring instead.
@Deprecated public void setOrientation(long value)
Specifies the orientation of the preview layer.
AVCaptureVideoOrientation and its constants are defined in AVCaptureSession.h. The value of @"orientationSupported" must be YES in order to set @"orientation". An exception will be raised if this requirement is ignored. This property is deprecated. Use AVCaptureConnection's -videoOrientation instead.
public void setSession(AVCaptureSession value)
The AVCaptureSession instance being previewed by the receiver.
The session is retained by the preview layer.
public void setSessionWithNoConnection(AVCaptureSession session)
Attaches the receiver to a given session without implicitly forming a connection to the first eligible video AVCaptureInputPort. Only use this setter if you intend to manually form a connection between a desired AVCaptureInputPort and the receiver using AVCaptureSession's -addConnection: method.
The session is retained by the preview layer.
public void setVideoGravity(java.lang.String value)
A string defining how the video is displayed within an AVCaptureVideoPreviewLayer bounds rect.
Options are AVLayerVideoGravityResize, AVLayerVideoGravityResizeAspect and AVLayerVideoGravityResizeAspectFill. AVLayerVideoGravityResizeAspect is default. See
public AVMetadataObject transformedMetadataObjectForMetadataObject(AVMetadataObject metadataObject)
Converts an AVMetadataObject's visual properties to layer coordinates.
AVMetadataObject bounds may be expressed as a rect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. Face metadata objects likewise express yaw and roll angles with respect to an unrotated picture. -transformedMetadataObjectForMetadataObject: converts the visual properties in the coordinate space of the supplied AVMetadataObject to the coordinate space of the receiver. The conversion takes orientation, mirroring, layer bounds and videoGravity into consideration. If the provided metadata object originates from an input source other than the preview layer's, nil will be returned.
metadataObject - An AVMetadataObject originating from the same AVCaptureInput as the preview layer.public java.lang.String videoGravity()
A string defining how the video is displayed within an AVCaptureVideoPreviewLayer bounds rect.
Options are AVLayerVideoGravityResize, AVLayerVideoGravityResizeAspect and AVLayerVideoGravityResizeAspectFill. AVLayerVideoGravityResizeAspect is default. See
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class CALayerpublic static double cornerCurveExpansionFactor(java.lang.String curve)
public boolean isPreviewing()
A BOOL value indicating whether the receiver is currently rendering video frames from its source.
An AVCaptureVideoPreviewLayer begins previewing when -[AVCaptureSession startRunning] is called. When associated with an AVCaptureMultiCamSession, all video preview layers are guaranteed to be previewing by the time the blocking call to -startRunning or -commitConfiguration returns. While a session is running, you may enable or disable a video preview layer's connection to re-start or stop the flow of video to the layer. Once you've set enabled to YES, you can observe this property changing from NO to YES and synchronize any UI to take place precisely when the video resumes rendering to the video preview layer.