VGSFilePickerController
public class VGSFilePickerController
Controller responsible for importing files from device sources.
-
VGSFilePickerControllerDelegate
- handle user interaction on file picking.Declaration
Swift
public weak var delegate: VGSFilePickerControllerDelegate? { get set }
-
Initialization
Declaration
Swift
public required init(configuration: VGSFilePickerConfiguration)
Parameters
configuration
-
Present file picker view
Declaration
Swift
public func presentFilePicker(on viewController: UIViewController, animated: Bool, completion: (() -> Void)? = nil)
Parameters
viewController
UIViewController
that will present card scanneranimated
pass
true
to animate the presentation; otherwise, passfalse
completion
the block to execute after the presentation finishes
-
Dismiss file picker view
Declaration
Swift
public func dismissFilePicker(animated: Bool, completion: (() -> Void)? = nil)
Parameters
animated
pass
true
to animate the dismiss of presented viewcontroller; otherwise, passfalse
completion
the block to execute after the dismiss finishes