MBDefaultDocumentChooserSettings
@objc
open class MBDefaultDocumentChooserSettings : NSObject, MBDocumentChooserSettings
Default implementation of MBDocumentChooserSettings
.
-
Declaration
Swift
@objc weak public var blinkIDUI: MBBlinkIDUI?
-
Filter for countries in country selection view controller.
- Default: MBAllowAllCountryFilter - all countries are allowed.
Declaration
Swift
@objc open var countryFilter: MBCountryFilter
-
Show/hide document tabs view.
- Default: true
Declaration
Swift
@objc open var shouldShowDocumentTypeTabs: Bool
-
Show/hide country chooser button.
- Default: true
Declaration
Swift
@objc open var shouldShowCountryChooser: Bool
-
Minimum number of rows to show section indexer sidebar in selection view controller. Default: 50
Declaration
Swift
@objc open var sectionIndexMinimumDisplayRowCount: Int
-
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 open 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 open 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 open func didTapChooseCountry(documentChooserViewController: MBDocumentChooserViewController)
Parameters
documentChooserViewController
view controller used to select documents and countries