Package com.whatsapp.otp.android.sdk
Class WhatsAppOtpUtils
java.lang.Object
com.whatsapp.otp.android.sdk.WhatsAppOtpUtils
Class with some utility functions which helps manage Broadcast receivers and Activities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisableComponent(android.content.Context context, Class<?> cls) Disable a given component.voidenableComponent(android.content.Context context, Class<?> cls) Enable a given component.
-
Constructor Details
-
WhatsAppOtpUtils
public WhatsAppOtpUtils()
-
-
Method Details
-
enableComponent
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- contextcls- class of the component you want to be enabled.
-
disableComponent
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- contextcls- class of the component you want to be enabled.
-