Skip to content

Error Callback #186

Closed
Closed

Description

@hbb20

@hbb20
ccp.setOnCountryChangeListener(new CountryCodePicker.OnCountryChangeListener() { @OverRide public void onCountrySelected() { Toast.makeText(PhoneNumberOtpActivity.this, "This is from OnCountryChangeListener. \n Country updated to " + ccp.getSelectedCountryName() + "(" + ccp.getSelectedCountryCodeWithPlus() + ")", Toast.LENGTH_SHORT).show(); } });

setOnCountryChangeListener will be called when it's autodetection executed/or failed?

onCountrySelected(Error e) will awesome we are getting error use custom other logic to detect country!

suggested by @LOG-TAG

Activity

  1. hbb20 commented on Apr 20, 2018

    @hbb20
    OwnerAuthor

    @LOG-TAG, CountryChangeListener is already being used by developers and changing it's default behavior is sensitive.

    To provide a way to implement what you asked, now version 2.2.0 has new listener FailureListener that should help you listen to failure on country detection. Post back with details if that does not work, we will open the issue if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions