Deprecated AVCaptureVideoPreviewLayer Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 6.0

automaticallyAdjustsMirroring

Indicates whether the layer display automatically adjusts mirroring. (Deprecated in iOS 6.0. Use automaticallyAdjustsVideoMirroring (AVCaptureConnection) instead.)

@property(nonatomic) BOOL automaticallyAdjustsMirroring
Discussion

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 capture device input.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 6.0.
Declared In
AVCaptureVideoPreviewLayer.h

mirrored

Indicates whether the layer display is mirrored. (Deprecated in iOS 6.0. Use videoMirrored (AVCaptureConnection) instead.)

@property(nonatomic, getter=isMirrored) BOOL mirrored
Discussion

To change the value of this property, the value of automaticallyAdjustsMirroring must be NO.

Mirroring is not supported on all hardware configurations. You should check the value of supportsVideoMirroring (AVCaptureConnection) before attempting to change this value.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 6.0.
Declared In
AVCaptureVideoPreviewLayer.h

mirroringSupported

Indicates whether the layer display supports mirroring. (read-only) (Deprecated in iOS 6.0. Use supportsVideoMirroring (AVCaptureConnection) instead.)

@property(nonatomic, readonly, getter=isMirroringSupported) BOOL mirroringSupported
Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 6.0.
See Also
Declared In
AVCaptureVideoPreviewLayer.h

orientation

The layer’s orientation. (Deprecated in iOS 6.0. Use videoOrientation (AVCaptureConnection) instead.)

@property(nonatomic) AVCaptureVideoOrientation orientation
Discussion

Changes in orientation are not supported on all hardware configurations. You should check the value of supportsVideoOrientation (AVCaptureConnection) before attempting to change the orientation of the receiver. An exception is raised if this requirement is ignored.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 6.0.
Declared In
AVCaptureVideoPreviewLayer.h

orientationSupported

Indicates whether the layer display supports changing the orientation. (read-only) (Deprecated in iOS 6.0. Use supportsVideoOrientation (AVCaptureConnection) instead.)

@property(nonatomic, readonly, getter=isOrientationSupported) BOOL orientationSupported
Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 6.0.
Declared In
AVCaptureVideoPreviewLayer.h