Murali P

Murali P

  • 1.2k
  • 207
  • 21.4k

Technical Solution reuired

Jan 8 2024 4:42 AM

hi,

need technical suggestion required.

we have 4 buttons in screen each button performing different services

button1, button2, button3, button4

when user press button1 its hitting API and doing some function. 
meanwhile if user clicks again its throwing exception since calling twice of that API
 throwing exception since calling the third party services.
 
 so expecting to intimate the user to wait in the form of message..
 
 suppose if user clicks button1 and before its returns the solution he may clicks the other buttons that time also need to inform the user as some action is in progress.
 
 kindly suggest me any solutions.
 
 am just thinking to create a hidden variable and store some value on click of any button ..
 
 before processing API if this hidden variable having any value then throw a message to user.


Answers (6)