MBDocumentChooserSettings
@objc
public protocol MBDocumentChooserSettings : AnyObject
Protocol used for setting up Document chooser settings These settings setup the following:
- country table view controller for picking the country
- document tabs used to pick the document
- country button used by default to open country table view controller
- filtering both countries through countryFilter and document types through
MBDocumentChooserSettings.isDocument(...)
-
Declaration
Swift
@objc weak var blinkIDUI: MBBlinkIDUI? { get set } -
Filter for countries in country selection view controller.
- Default: MBAllowAllCountryFilter - all countries are allowed.
Declaration
Swift
@objc var countryFilter: MBCountryFilter { get set } -
Show/hide document tabs view.
- Default: true
Declaration
Swift
@objc var shouldShowDocumentTypeTabs: Bool { get set } -
Show/hide country chooser button.
- Default: true
Declaration
Swift
@objc var shouldShowCountryChooser: Bool { get set } -
Minimum number of rows to show section indexer sidebar in selection view controller. Default: 50
Declaration
Swift
@objc var sectionIndexMinimumDisplayRowCount: Int { get set } -
Checks if document is supported by the country. This is used to display proper document selection tabs for the country. You can use this function to filter document types by countries.
Declaration
Swift
@objc func isDocument(document: MBDocumentType, supportedForCountry country: MBCountry) -> BoolParameters
documentdocument type that is being tested if it’s supported.
countrycountry that is selected.
Return Value
if the document is supported by the country
-
Default document type that will be set as selected when country is changed.
Declaration
Swift
@objc func defaultDocumentTypeForCountry(country: MBCountry) -> MBDocumentTypeParameters
countrycountry that was selected
Return Value
document type that will be selected
-
Event called once the document choose country button was tapped
Declaration
Swift
@objc func didTapChooseCountry(documentChooserViewController: MBDocumentChooserViewController)Parameters
documentChooserViewControllerview controller used to select documents and countries
View on GitHub
Install in Dash
MBDocumentChooserSettings Protocol Reference