Search Results for

    Show / Hide Table of Contents

    Class AVCapturePreview

    An AV Capture preview.

    Inheritance
    System.Object
    AVCapturePreview
    Namespace: FM.LiveSwitch.Cocoa
    Assembly: FM.LiveSwitch.Cocoa.dll
    Syntax
    public class AVCapturePreview : UIView

    Constructors

    AVCapturePreview()

    Initializes a new instance of the AVCapturePreview class.

    Declaration
    public AVCapturePreview()

    AVCapturePreview(CGRect)

    Initializes a new instance of the AVCapturePreview class.

    Declaration
    public AVCapturePreview(CGRect frame)
    Parameters
    Type Name Description
    CGRect frame

    Frame used by the view, expressed in iOS points.

    Remarks

    This constructor is used to programmatically create a new instance of UIView with the specified dimension in the frame. The object will only be displayed once it has been added to a view hierarchy by calling AddSubview in a containing view.

    This constructor is not invoked when deserializing objects from storyboards or XIB filesinstead the constructor that takes an NSCoder parameter is invoked.

    Properties

    Mirror

    Gets or sets a value indicating whether this AVCapturePreview is mirror.

    Declaration
    public bool Mirror { get; set; }
    Property Value
    Type Description
    System.Boolean

    Muted

    Gets or sets a value indicating whether this AVCapturePreview is muted.

    Declaration
    public bool Muted { get; set; }
    Property Value
    Type Description
    System.Boolean

    Scale

    Gets or sets the scale.

    Declaration
    public LayoutScale Scale { get; set; }
    Property Value
    Type Description
    LayoutScale

    Session

    Gets or sets the session.

    Declaration
    public AVCaptureSession Session { get; set; }
    Property Value
    Type Description
    AVCaptureSession

    Methods

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    LayoutSubviews()

    Lays out subviews.

    Declaration
    public override void LayoutSubviews()
    Remarks

    The default implementation of this method does nothing on iOS 5.1 and earlier. Otherwise, the default implementation uses any constraints you have set to determine the size and position of any subviews.

    Subclasses can override this method as needed to perform more precise layout of their subviews. You should override this method only if the autoresizing and constraint-based behaviors of the subviews do not offer the behavior you want. You can use your implementation to set the frame rectangles of your subviews directly.

    You should not call this method directly. If you want to force a layout update, call the setNeedsLayout method instead to do so prior to the next drawing update. If you want to update the layout of your views immediately, call the layoutIfNeeded method.

    RenderBuffer(VideoBuffer)

    Renders the buffer.

    Declaration
    public void RenderBuffer(VideoBuffer buffer)
    Parameters
    Type Name Description
    VideoBuffer buffer

    The buffer.

    RenderCGImage(CGImage)

    Renders the cg image.

    Declaration
    public void RenderCGImage(CGImage cgImage)
    Parameters
    Type Name Description
    CGImage cgImage

    The cg image.

    RenderImage(UIImage)

    Renders the image.

    Declaration
    public void RenderImage(UIImage image)
    Parameters
    Type Name Description
    UIImage image

    The image.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.18.0