Classes
The following classes are available globally.
-
Range slider track layer. Responsible for drawing the horizontal track
See moreDeclaration
Swift
open class RangeSliderTrackLayer: CALayer
-
the thumb for upper , lower bounds
See moreDeclaration
Swift
open class RangeSliderThumbLayer: CALayer
-
Range slider view with upper, lower bounds
See moreDeclaration
Swift
open class ViRangeSlider: UIControl
-
image view with a custom action button at the top right corner Note: the action button is currently not in used. It has been moved to the corner of the product card instead
See moreDeclaration
Swift
open class ViImageView: UIView
-
fetch single image from photo library for cropping
See moreDeclaration
Swift
public class SingleImageFetcher
-
Theme for ViSenze widgets quick and easy way to configure various UI settings such as font/color in all the widgets
See moreDeclaration
Swift
public class ViTheme: NSObject
-
listen for events when user click on volume buttons used for taking photos with volume buttons
Declaration
Swift
public class VolumeControl
-
present search results in either horizontal scrollview or vertical grid The layout is vertical and as follow: headerView - collectionView - footerView headerView generally contains the widget title such as
See moreYou May Also Like
footerView generally contains the Power by Visenze imageDeclaration
Swift
open class ViSearchResultsView: UIView
-
Display the search results in a horizontal scroll view This is used currently by
See moreYou May Also Like
widget i.e. ViRecommendationViewControllerDeclaration
Swift
open class ViHorizontalSearchViewController: ViBaseSearchViewController
-
For user to confirm whether to keep image after taking photo from camera, select image from photo library optional to crop photo here
See moreDeclaration
Swift
public class ConfirmViewController: UIViewController, UIScrollViewDelegate
-
Layout for a single product card The layout is dynamic depending on various configurations e.g. label/action button can be optional
See moreDeclaration
Swift
open class ViProductCardLayout: StackLayout<UIView>
-
Search by Image widget. Search results will be displayed in a grid.
See moreDeclaration
Swift
open class ViSearchImageViewController: ViGridSearchViewController
-
simplify construction of product card layout with builder pattern Not in used currently
See moreDeclaration
Swift
open class ViProductCardLayoutBuilder: NSObject
-
Base controller for all search widgets
See moreDeclaration
Swift
open class ViBaseSearchViewController: UIViewController , UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, ViSearchViewControllerProtocol, ViProductCellDelegate
-
Base/abstract class for a filter item that will appear in the filter bar This is not meant to be used directly. Should only instantiate the sub classes
See moreDeclaration
Swift
open class ViFilterItem: NSObject
-
Filter category option similar to
See moreDeclaration
Swift
open class ViFilterItemCategoryOption : NSObject
-
The multiple selection category filter
See moreDeclaration
Swift
open class ViFilterItemCategory : ViFilterItem
-
Range filter e.g. for filtering price range
See moreDeclaration
Swift
open class ViFilterItemRange : ViFilterItem
-
store constants used for camera functions
See moreDeclaration
Swift
public class CameraGlobals
-
Model to hold data for product card Based on the provided schema mapping and ViSenze API response, data will be populated in this class Represent a single product
See moreDeclaration
Swift
open class ViProduct: NSObject
-
Search by Color widget. Search results will be displayed in a grid
See moreDeclaration
Swift
open class ViColorSearchViewController: ViGridSearchViewController , UIPopoverPresentationControllerDelegate, ViColorPickerDelegate
-
Open camera to take photo. This view controller will include user guide info button, flash button and reverse camera button
See moreDeclaration
Swift
public class CameraViewController: UIViewController, UIPopoverPresentationControllerDelegate
-
Custom view which include a tableView + power by Visenze image and OK button at the footer
See moreDeclaration
Swift
open class ViFilterTableView: UIView
-
Display search results in a grid This is the base class for
See moreFind Similar
,Search By Color
,Search By Image
widgets (ViFindSimilarViewController, ViColorSearchViewController, ViSearchImageViewController) The products are layouted using collectionView flow layout which will push product items to the next line based on the item sizeDeclaration
Swift
open class ViGridSearchViewController: ViBaseSearchViewController , ViFilterViewControllerDelegate
-
save image to photo library after taking camera photo
See moreDeclaration
Swift
public class SingleImageSaver
-
Filter category view controller which allows multiple selection
See moreDeclaration
Swift
open class ViFilterCategoryViewController: UIViewController , UITableViewDelegate, UITableViewDataSource
-
Find Similar widget. Search results are displayed in a grid
See moreDeclaration
Swift
open class ViFindSimilarViewController: ViGridSearchViewController
-
Display images from photo library for selection
See moreDeclaration
Swift
public class PhotoLibraryViewController: UIViewController
-
Fetch images from photo library
See moreDeclaration
Swift
public class ImageFetcher
-
Camera view with optional crop overlay
See moreDeclaration
Swift
public class CameraView: UIView
-
Color picker view controller Present colors in a grid (collection view). Implement ViColorPickerDelegate to receive notification for selected color List of colors are configurable
See moreDeclaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
-
You May Also Like widget. Search results are displayed in horizontal scroll view
See moreDeclaration
Swift
open class ViRecommendationViewController: ViHorizontalSearchViewController
-
extract the products info from schema mapping
See moreDeclaration
Swift
public class ViSchemaHelper: NSObject
-
Product card collection view cell
See moreDeclaration
Swift
open class ViProductCollectionViewCell: UICollectionViewCell
-
This is almost the same as product card used for displaying the search query product i.e. the product that is being searched during
See moreFind Similar
the product info are displayed on the right of the image (for product card in search results, the info is displayed below image)Declaration
Swift
open class ViQueryProductLayout: StackLayout<UIView>
-
Table view cell for range filter. This will contain the range filter title, the range slider and the upper/lower labels The upper/lower labels will be updated when the range filter upper/lower thumbs are dragged.
See moreDeclaration
Swift
open class ViRangeTableViewCell: UITableViewCell
-
Filter controller that shows list of filter items in a table view
See moreDeclaration
Swift
open class ViFilterViewController: UIViewController , UITableViewDelegate, UITableViewDataSource ,ViFilterCategoryViewControllerDelegate