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) -> Bool
Parameters
document
document type that is being tested if it’s supported.
country
country 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) -> MBDocumentType
Parameters
country
country 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
documentChooserViewController
view controller used to select documents and countries