Package apple.avfoundation
Class AVCaptureVideoPreviewLayer
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.quartzcore.CALayer
-
- apple.avfoundation.AVCaptureVideoPreviewLayer
-
- All Implemented Interfaces:
NSCoding,NSSecureCoding,NSObject,CAMediaTiming
public class AVCaptureVideoPreviewLayer extends CALayer
AVCaptureVideoPreviewLayer 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".
-
-
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 protectedAVCaptureVideoPreviewLayer(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static AVCaptureVideoPreviewLayeralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanautomaticallyAdjustsMirroring()Deprecated.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)CGPointcaptureDevicePointOfInterestForPoint(CGPoint pointInLayer)captureDevicePointOfInterestForPoint: Converts a point in layer coordinates to a point of interest in the coordinate space of the capture device providing input to the layer.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()AVCaptureConnectionconnection()[@property] connection The AVCaptureConnection instance describing the AVCaptureInputPort to which the receiver is connected.static doublecornerCurveExpansionFactor(java.lang.String curve)static java.lang.StringdebugDescription_static()static CAActiondefaultActionForKey(java.lang.String event)static java.lang.ObjectdefaultValueForKey(java.lang.String key)static java.lang.Stringdescription_static()static longhash_static()AVCaptureVideoPreviewLayerinit()The designated initializer.AVCaptureVideoPreviewLayerinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERAVCaptureVideoPreviewLayerinitWithLayer(java.lang.Object layer)This initializer is used by CoreAnimation to create shadow copies of layers, e.g. for use as presentation layers.AVCaptureVideoPreviewLayerinitWithSession(AVCaptureSession session)initWithSession: Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.AVCaptureVideoPreviewLayerinitWithSessionWithNoConnection(AVCaptureSession session)initWithSessionWithNoConnection: 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.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)booleanisMirrored()Deprecated.booleanisMirroringSupported()Deprecated.booleanisOrientationSupported()Deprecated.booleanisPreviewing()[@property] previewing A BOOL value indicating whether the receiver is currently rendering video frames from its source.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static AVCaptureVideoPreviewLayerlayer()static AVCaptureVideoPreviewLayerlayerWithSession(AVCaptureSession session)layerWithSession: Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.static AVCaptureVideoPreviewLayerlayerWithSessionWithNoConnection(AVCaptureSession session)layerWithSessionWithNoConnection: 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.CGRectmetadataOutputRectOfInterestForRect(CGRect rectInLayerCoordinates)metadataOutputRectOfInterestForRect: 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.static booleanneedsDisplayForKey(java.lang.String key)static java.lang.Objectnew_objc()longorientation()Deprecated.CGPointpointForCaptureDevicePointOfInterest(CGPoint captureDevicePointOfInterest)pointForCaptureDevicePointOfInterest: Converts a point of interest in the coordinate space of the capture device providing input to the layer to a point in layer coordinates.CGRectrectForMetadataOutputRectOfInterest(CGRect rectInMetadataOutputCoordinates)rectForMetadataOutputRectOfInterest: 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.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)AVCaptureSessionsession()[@property] session The AVCaptureSession instance being previewed by the receiver.voidsetAutomaticallyAdjustsMirroring(boolean value)Deprecated.voidsetMirrored(boolean value)Deprecated.voidsetOrientation(long value)Deprecated.voidsetSession(AVCaptureSession value)[@property] session The AVCaptureSession instance being previewed by the receiver.voidsetSessionWithNoConnection(AVCaptureSession session)method setSessionWithNoConnection: Attaches the receiver to a given session without implicitly forming a connection to the first eligible video AVCaptureInputPort.static voidsetVersion_static(long aVersion)voidsetVideoGravity(java.lang.String value)[@property] videoGravity A string defining how the video is displayed within an AVCaptureVideoPreviewLayer bounds rect.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()AVMetadataObjecttransformedMetadataObjectForMetadataObject(AVMetadataObject metadataObject)transformedMetadataObjectForMetadataObject: Converts an AVMetadataObject's visual properties to layer coordinates.static longversion_static()java.lang.StringvideoGravity()[@property] videoGravity A string defining how the video is displayed within an AVCaptureVideoPreviewLayer bounds rect.-
Methods inherited from class apple.quartzcore.CALayer
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, setDelegate_unsafe, 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, zPosition
-
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 AVCaptureVideoPreviewLayer 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()
-
defaultActionForKey
public static CAAction defaultActionForKey(java.lang.String event)
-
defaultValueForKey
public static java.lang.Object defaultValueForKey(java.lang.String key)
-
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)
-
layer
public static AVCaptureVideoPreviewLayer layer()
-
layerWithSession
public static AVCaptureVideoPreviewLayer layerWithSession(AVCaptureSession session)
layerWithSession: Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.- Parameters:
session- The AVCaptureSession instance to be previewed.- Returns:
- A newly initialized AVCaptureVideoPreviewLayer instance.
-
layerWithSessionWithNoConnection
public static AVCaptureVideoPreviewLayer layerWithSessionWithNoConnection(AVCaptureSession session)
layerWithSessionWithNoConnection: 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.- Parameters:
session- The AVCaptureSession instance to be previewed.- Returns:
- A newly initialized AVCaptureVideoPreviewLayer instance.
-
needsDisplayForKey
public static boolean needsDisplayForKey(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()
-
automaticallyAdjustsMirroring
@Deprecated public boolean automaticallyAdjustsMirroring()
Deprecated.[@property] 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.
-
captureDevicePointOfInterestForPoint
public CGPoint captureDevicePointOfInterestForPoint(CGPoint pointInLayer)
captureDevicePointOfInterestForPoint: 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.- Parameters:
pointInLayer- A CGPoint in layer coordinates.- Returns:
- A CGPoint in the coordinate space of the capture device providing input to the layer.
-
connection
public AVCaptureConnection connection()
[@property] 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.
-
init
public AVCaptureVideoPreviewLayer init()
Description copied from class:CALayerThe designated initializer.
-
initWithCoder
public AVCaptureVideoPreviewLayer initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classCALayer
-
initWithLayer
public AVCaptureVideoPreviewLayer initWithLayer(java.lang.Object layer)
Description copied from class:CALayerThis initializer is used by CoreAnimation to create shadow copies of layers, e.g. for use as presentation layers. Subclasses can override this method to copy their instance variables into the presentation layer (subclasses should call the superclass afterwards). Calling this method in any other situation will result in undefined behavior.- Overrides:
initWithLayerin classCALayer
-
initWithSession
public AVCaptureVideoPreviewLayer initWithSession(AVCaptureSession session)
initWithSession: Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.- Parameters:
session- The AVCaptureSession instance to be previewed.- Returns:
- A newly initialized AVCaptureVideoPreviewLayer instance.
-
initWithSessionWithNoConnection
public AVCaptureVideoPreviewLayer initWithSessionWithNoConnection(AVCaptureSession session)
initWithSessionWithNoConnection: 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.- Parameters:
session- The AVCaptureSession instance to be previewed.- Returns:
- A newly initialized AVCaptureVideoPreviewLayer instance.
-
isMirrored
@Deprecated public boolean isMirrored()
Deprecated.[@property] mirrored 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.
-
setMirrored
@Deprecated public void setMirrored(boolean value)
Deprecated.[@property] mirrored 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.
-
isMirroringSupported
@Deprecated public boolean isMirroringSupported()
Deprecated.[@property] mirroringSupported 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.
-
isOrientationSupported
@Deprecated public boolean isOrientationSupported()
Deprecated.[@property] orientationSupported 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.
-
metadataOutputRectOfInterestForRect
public CGRect metadataOutputRectOfInterestForRect(CGRect rectInLayerCoordinates)
metadataOutputRectOfInterestForRect: 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.- Parameters:
rectInLayerCoordinates- A CGRect in layer coordinates.- Returns:
- A CGRect in the coordinate space of the metadata output whose capture device is providing input to the layer.
-
orientation
@Deprecated public long orientation()
Deprecated.[@property] 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.
-
pointForCaptureDevicePointOfInterest
public CGPoint pointForCaptureDevicePointOfInterest(CGPoint captureDevicePointOfInterest)
pointForCaptureDevicePointOfInterest: 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.- Parameters:
captureDevicePointOfInterest- A CGPoint in the coordinate space of the capture device providing input to the layer.- Returns:
- A CGPoint in layer coordinates.
-
rectForMetadataOutputRectOfInterest
public CGRect rectForMetadataOutputRectOfInterest(CGRect rectInMetadataOutputCoordinates)
rectForMetadataOutputRectOfInterest: 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.- Parameters:
rectInMetadataOutputCoordinates- A CGRect in the coordinate space of the metadata output whose capture device is providing input to the layer.- Returns:
- A CGRect in layer coordinates.
-
session
public AVCaptureSession session()
[@property] session The AVCaptureSession instance being previewed by the receiver. The session is retained by the preview layer.
-
setAutomaticallyAdjustsMirroring
@Deprecated public void setAutomaticallyAdjustsMirroring(boolean value)
Deprecated.[@property] 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.
-
setOrientation
@Deprecated public void setOrientation(long value)
Deprecated.[@property] 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.
-
setSession
public void setSession(AVCaptureSession value)
[@property] session The AVCaptureSession instance being previewed by the receiver. The session is retained by the preview layer.
-
setSessionWithNoConnection
public void setSessionWithNoConnection(AVCaptureSession session)
method setSessionWithNoConnection: 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.
-
setVideoGravity
public void setVideoGravity(java.lang.String value)
[@property] videoGravity A string defining how the video is displayed within an AVCaptureVideoPreviewLayer bounds rect. Options are AVLayerVideoGravityResize, AVLayerVideoGravityResizeAspect and AVLayerVideoGravityResizeAspectFill. AVLayerVideoGravityResizeAspect is default. Seefor a description of these options.
-
transformedMetadataObjectForMetadataObject
public AVMetadataObject transformedMetadataObjectForMetadataObject(AVMetadataObject metadataObject)
transformedMetadataObjectForMetadataObject: 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.- Parameters:
metadataObject- An AVMetadataObject originating from the same AVCaptureInput as the preview layer.- Returns:
- An AVMetadataObject whose properties are in layer coordinates.
-
videoGravity
public java.lang.String videoGravity()
[@property] videoGravity A string defining how the video is displayed within an AVCaptureVideoPreviewLayer bounds rect. Options are AVLayerVideoGravityResize, AVLayerVideoGravityResizeAspect and AVLayerVideoGravityResizeAspectFill. AVLayerVideoGravityResizeAspect is default. Seefor a description of these options.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classCALayer
-
cornerCurveExpansionFactor
public static double cornerCurveExpansionFactor(java.lang.String curve)
-
isPreviewing
public boolean isPreviewing()
[@property] previewing 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.
-
-