MBBlacklistCountryFilter

@objc
public class MBBlacklistCountryFilter : NSObject, MBCountryFilter

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

  • Creates an instance of MBBlacklistCountryFilter that will filter out the countries provided through MBBlacklistCountryFilter.blacklistedCountryCodes parameter.

    Declaration

    Swift

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

    Parameters

    blacklistedCountryCodes

    countries that will be removed

  • Declaration

    Swift

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