ViSearchImageViewController

open class ViSearchImageViewController: ViGridSearchViewController

Search by Image widget. Search results will be displayed in a grid.

  • most recent photo asset that is loaded from photo library

    Declaration

    Swift

    public var asset: PHAsset? = nil
  • whether to enable cropping

    Declaration

    Swift

    open var croppingEnabled : Bool = true
  • whether to allow access to photo library to pick a photo

    Declaration

    Swift

    open var allowsLibraryAccess : Bool = true
  • Undocumented

    Declaration

    Swift

    open class ViSearchImageViewController: ViGridSearchViewController
  • Undocumented

    Declaration

    Swift

    open class ViSearchImageViewController: ViGridSearchViewController
  • Undocumented

    Declaration

    Swift

    open class ViSearchImageViewController: ViGridSearchViewController
  • Create the floating view that contains Filter + Camera buttons

    Returns

    generated view

    Declaration

    Swift

    public func getFloatingView() -> UIView

    Return Value

    generated view

  • reset scroll and move collectionView back to top

    Declaration

    Swift

    open func resetScroll()
  • check scroll view position, if below header , then overlay filter + color buttons on top

    Declaration

    Swift

    open func checkHeaderGone(_ scrollView: UIScrollView)
  • layout for header that contains query image and filter

    Declaration

    Swift

    open override var headerLayout : Layout?
  • Open camera to take picture

    • Parameters:
      • sender: camera button
      • event: button event

    Declaration

    Swift

    public func openCameraView(sender: UIButton, forEvent event: UIEvent)

    Parameters

    sender

    camera button

    event

    button event

  • Open crop image view controller

    • Parameters:
      • sender: crop button
      • event: button event

    Declaration

    Swift

    public func cropImg(sender: UIButton, forEvent event: UIEvent)

    Parameters

    sender

    crop button

    event

    button event

  • since we show the Power by ViSenze image below the query product, it is not necessary to show again in the footer if query product is not available, then the Power by ViSenze image will appear in footer

    Declaration

    Swift

    open override var footerSize : CGSize
  • call ViSearch API and refresh the views

    Declaration

    Swift

    open override func refreshData()
  • Undocumented

    Declaration

    Swift

    open class ViSearchImageViewController: ViGridSearchViewController