Class PhoneVerification.Response

java.lang.Object
com.codename1.components.PhoneVerification.Response
Enclosing class:
PhoneVerification

public static final class PhoneVerification.Response extends Object

The application's answer to one request. Exactly one of its methods takes effect, and later calls are ignored rather than rejected: a server wrapper that answers twice on a retry is a nuisance, not a reason to leave the screen stuck.

Either method may be called from any thread.

  • Method Details

    • succeeded

      public void succeeded()
      The request succeeded: the message was sent, or the code was correct.
    • failed

      public void failed(String message)

      The request failed.

      Parameters
      • message: what to show the user; a default is shown when null