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". API-Since: 4.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, 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 AVCaptureVideoPreviewLayerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanautomaticallyAdjustsMirroring()Deprecated.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable 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 @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable AVCaptureConnectionconnection()[@property] connection The AVCaptureConnection instance describing the AVCaptureInputPort to which the receiver is connected.static doublecornerCurveExpansionFactor(@NotNull java.lang.String curve)static java.lang.StringdebugDescription_static()static @Nullable CAActiondefaultActionForKey(@NotNull java.lang.String event)static @Nullable java.lang.ObjectdefaultValueForKey(@NotNull java.lang.String key)static java.lang.Stringdescription_static()static longhash_static()AVCaptureVideoPreviewLayerinit()The designated initializer.AVCaptureVideoPreviewLayerinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERAVCaptureVideoPreviewLayerinitWithLayer(@NotNull java.lang.Object layer)This initializer is used by CoreAnimation to create shadow copies of layers, e.g.AVCaptureVideoPreviewLayerinitWithSession(@NotNull AVCaptureSession session)initWithSession: Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.AVCaptureVideoPreviewLayerinitWithSessionWithNoConnection(@NotNull 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 @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static AVCaptureVideoPreviewLayerlayer()static AVCaptureVideoPreviewLayerlayerWithSession(@NotNull AVCaptureSession session)layerWithSession: Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession.static AVCaptureVideoPreviewLayerlayerWithSessionWithNoConnection(@NotNull 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(@NotNull java.lang.String key)static AVCaptureVideoPreviewLayernew_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)@Nullable AVCaptureSessionsession()[@property] session The AVCaptureSession instance being previewed by the receiver.voidsetAutomaticallyAdjustsMirroring(boolean value)Deprecated.voidsetMirrored(boolean value)Deprecated.voidsetOrientation(long value)Deprecated.voidsetSession(@Nullable AVCaptureSession value)[@property] session The AVCaptureSession instance being previewed by the receiver.voidsetSessionWithNoConnection(@NotNull 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(@NotNull 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()@Nullable AVMetadataObjecttransformedMetadataObjectForMetadataObject(@NotNull AVMetadataObject metadataObject)transformedMetadataObjectForMetadataObject: Converts an AVMetadataObject's visual properties to layer coordinates.static booleanuseStoredAccessor()Deprecated.static longversion_static()@NotNull 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, setWantsExtendedDynamicRangeContent, setZPosition, shadowColor, shadowOffset, shadowOpacity, shadowPath, shadowRadius, shouldArchiveValueForKey, shouldRasterize, speed, style, sublayers, sublayerTransform, superlayer, timeOffset, transform, visibleRect, wantsExtendedDynamicRangeContent, zPosition
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVCaptureVideoPreviewLayer alloc()
-
allocWithZone
public static AVCaptureVideoPreviewLayer allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
defaultActionForKey
@Nullable public static @Nullable CAAction defaultActionForKey(@NotNull @NotNull java.lang.String event)
-
defaultValueForKey
@Nullable public static @Nullable java.lang.Object defaultValueForKey(@NotNull @NotNull 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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
layer
public static AVCaptureVideoPreviewLayer layer()
-
layerWithSession
public static AVCaptureVideoPreviewLayer layerWithSession(@NotNull @NotNull 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(@NotNull @NotNull 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. API-Since: 8.0
-
needsDisplayForKey
public static boolean needsDisplayForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static AVCaptureVideoPreviewLayer 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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: 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. API-Since: 6.0- Parameters:
pointInLayer- A CGPoint in layer coordinates.- Returns:
- A CGPoint in the coordinate space of the capture device providing input to the layer.
-
connection
@Nullable public @Nullable 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. API-Since: 6.0
-
init
public AVCaptureVideoPreviewLayer init()
Description copied from class:CALayerThe designated initializer.
-
initWithCoder
public AVCaptureVideoPreviewLayer initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classCALayer
-
initWithLayer
public AVCaptureVideoPreviewLayer initWithLayer(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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. API-Since: 8.0
-
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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: 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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: 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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: 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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: 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. API-Since: 7.0- 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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: 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. API-Since: 6.0- 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. API-Since: 7.0- 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
@Nullable public @Nullable 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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: 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. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: Use AVCaptureConnection's videoOrientation instead.
-
setSession
public void setSession(@Nullable @Nullable AVCaptureSession value)[@property] session The AVCaptureSession instance being previewed by the receiver. The session is retained by the preview layer.
-
setSessionWithNoConnection
public void setSessionWithNoConnection(@NotNull @NotNull 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. API-Since: 8.0
-
setVideoGravity
public void setVideoGravity(@NotNull @NotNull 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
@Nullable public @Nullable AVMetadataObject transformedMetadataObjectForMetadataObject(@NotNull @NotNull 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. API-Since: 6.0- Parameters:
metadataObject- An AVMetadataObject originating from the same AVCaptureInput as the preview layer.- Returns:
- An AVMetadataObject whose properties are in layer coordinates.
-
videoGravity
@NotNull public @NotNull 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(@NotNull @NotNull 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. API-Since: 13.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-