Class WhatsAppOtpUtils

java.lang.Object
com.whatsapp.otp.android.sdk.WhatsAppOtpUtils

public class WhatsAppOtpUtils extends Object
Class with some utility functions which helps manage Broadcast receivers and Activities
  • Constructor Details

    • WhatsAppOtpUtils

      public WhatsAppOtpUtils()
  • Method Details

    • enableComponent

      public void enableComponent(@NonNull android.content.Context context, @NonNull Class<?> cls)
      Enable a given component. Use this function for instance if you want a given component to be available only when your application is waiting for the otp code.
      Parameters:
      context - context
      cls - class of the component you want to be enabled.
    • disableComponent

      public void disableComponent(@NonNull android.content.Context context, @NonNull Class<?> cls)
      Disable a given component. You can use this function to disable a component from being available if your app is not waiting for an otp code.
      Parameters:
      context - context
      cls - class of the component you want to be enabled.