currentView

Description

Gets or sets the current view type. The default is DVE_IMAGEGALLERYVIEW.

Data type

DcsViewEnum

Syntax

var currentView:DcsViewEnum

Remarks

Enumerated Value View Type
DVE_VIDEOVIEW Video view
DVE_IMAGEGALLERYVIEW Image gallery view
DVE_EDITORVIEW Edit view. When the data you operate with is DcsDocument, it displays the document editor. If it's DcsImage, then it displays the image editor.

If the value you set is not among the above, the exception DcsValueOutOfRangeException will be thrown.

Example

class ViewController: UIViewController {
    var dcsView:DcsView!
    override func viewDidLoad() {
        super.viewDidLoad()
        dcsView = DcsView(frame: CGRect(x:0,y:0,width:self.view.frame.size.width,height:self.view.frame.size.height))
        view.addSubview(dcsView)
        dcsView.currentView = DVE_VIDEOVIEW
    }
}
Is this page helpful?