Package 

Class AuthUI.IdpConfig.PhoneBuilder

    • Constructor Detail

      • AuthUI.IdpConfig.PhoneBuilder

        AuthUI.IdpConfig.PhoneBuilder()
    • Method Detail

      • setAllowedCountries

         AuthUI.IdpConfig.PhoneBuilder setAllowedCountries(@NonNull() List<String> countries)

        Sets the country codes available in the country code selector for phoneauthentication. Takes as input a List of both country isos and codes.This is not to be called with setBlockedCountries.If both are called, an exception will be thrown.

        Inputting an e-164 country code (e.g. '+1') will include all countries with+1 as its code.Example input: {'+52', 'us'}For a list of country iso or codes, see Alpha-2 isos here:https://en.wikipedia.org/wiki/ISO_3166-1and e-164 codes here: https://en.wikipedia.org/wiki/List_of_country_calling_codes

        Parameters:
        countries - a non empty case insensitive list of country codesand/or isos to be allowlisted
      • setBlockedCountries

         AuthUI.IdpConfig.PhoneBuilder setBlockedCountries(@NonNull() List<String> countries)

        Sets the countries to be removed from the country code selector for phoneauthentication. Takes as input a List of both country isos and codes.This is not to be called with setAllowedCountries.If both are called, an exception will be thrown.

        Inputting an e-164 country code (e.g. '+1') will include all countries with+1 as its code.Example input: {'+52', 'us'}For a list of country iso or codes, see Alpha-2 codes here:https://en.wikipedia.org/wiki/ISO_3166-1and e-164 codes here: https://en.wikipedia.org/wiki/List_of_country_calling_codes

        Parameters:
        countries - a non empty case insensitive list of country codesand/or isos to be blocklisted