MBWhitelistCountryFilter

@objc
public class MBWhitelistCountryFilter : NSObject, MBCountryFilter

Class will return an array of countries that match the provided set of country codes.

  • Creates an instance of MBWhitelistCountryFilter that will filter out the countries not provided through MBWhitelistCountryFilter.whitelistedCountryCodes parameter.

    Declaration

    Swift

    @objc
    public required init(whitelistedCountryCodes: Set<String>)

    Parameters

    whitelistedCountryCodes

    countries that won’t be removed.

  • Declaration

    Swift

    @objc
    public func filter(countries: [MBCountry]) -> [MBCountry]