| 226 | whitelistedCountries: string[] = []; |
| 227 | |
| 228 | getNative(ui: UI) { |
| 229 | if (this.blacklistedCountries.length > 0) { |
| 230 | const countries = NSMutableSet.new<string>(); |
| 231 | this.blacklistedCountries.forEach((country) => { |
| 232 | countries.addObject(country); |
| 233 | }); |
| 234 | return FUIPhoneAuth.alloc().initWithAuthUIBlacklistedCountries(ui.native, countries); |
| 235 | } else if (this.whitelistedCountries.length > 0) { |
| 236 | const countries = NSMutableSet.new<string>(); |
| 237 | this.whitelistedCountries.forEach((country) => { |
| 238 | countries.addObject(country); |
| 239 | }); |
| 240 | return FUIPhoneAuth.alloc().initWithAuthUIWhitelistedCountries(ui.native, countries); |
| 241 | } else { |
| 242 | return FUIPhoneAuth.alloc().initWithAuthUI(ui.native); |
| 243 | } |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | export class AnonymousProvider extends ProviderBase { |