Enum Class WhatsAppOtpError

java.lang.Object
java.lang.Enum<WhatsAppOtpError>
com.whatsapp.otp.android.sdk.enums.WhatsAppOtpError
All Implemented Interfaces:
Serializable, Comparable<WhatsAppOtpError>, Constable

public enum WhatsAppOtpError extends Enum<WhatsAppOtpError>
  • Enum Constant Details

    • INTENT_IS_NOT_FROM_WHATSAPP

      public static final WhatsAppOtpError INTENT_IS_NOT_FROM_WHATSAPP
      Intent is not from WhatsApp
    • OTP_CODE_NOT_RECEIVED

      public static final WhatsAppOtpError OTP_CODE_NOT_RECEIVED
      Otp code is not present (this should not happend)
    • GENERIC_EXCEPTION

      public static final WhatsAppOtpError GENERIC_EXCEPTION
      Failure when extracting otp code
  • Method Details

    • values

      public static WhatsAppOtpError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WhatsAppOtpError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null