native.setActivityIndicator() - "objects may not work consistently" vs "touch events are ignored"

Re: native.setActivityIndicator

  • Background: the native features documentation in the api library reads, “These objects may not work consistently between devices and even in the Corona Simulator. You should always test on the target device.”  The specific native.setActivityIndicator documentation reads: “Touch events are ignored while the indicator is shown.”
     
  • Question: So is there a way to determine if the touch events are removed/inactive in case the activity indicator isn’t working as it should?

Thanks.

Hi @Pixin,

In regards to the activity indicator, it should “work” on both Simulator and device, but it will appear differently (visually). I don’t think you need to really handle any special case for this. Perhaps I’m not understanding what your concern is?

Brent

Thanks Brent, yes I think you understand. :huh: :wink:

I usually remove all listeners before the web popup, but I’d like to use the indicator instead. Then, after the popup is cancelled, I’d simply set the indicator to false and let the listeners become active again.  It works on the few IOS and android devices I have, but since I don’t have all possible devices, just wanted to check to see if I should put some extra checks in there.  Sounds like it’s ok, right?

Yes, it should be OK, but if you find otherwise (or if anybody else has experience with this), please post here.

Thanks,

Brent

Thanks Brent, I sure will.  This is the first time using the indicator so I just wanted to make sure since I’m not used to the luxury of not removing and adding back listeners. :wink:

Hi @Pixin,

In regards to the activity indicator, it should “work” on both Simulator and device, but it will appear differently (visually). I don’t think you need to really handle any special case for this. Perhaps I’m not understanding what your concern is?

Brent

Thanks Brent, yes I think you understand. :huh: :wink:

I usually remove all listeners before the web popup, but I’d like to use the indicator instead. Then, after the popup is cancelled, I’d simply set the indicator to false and let the listeners become active again.  It works on the few IOS and android devices I have, but since I don’t have all possible devices, just wanted to check to see if I should put some extra checks in there.  Sounds like it’s ok, right?

Yes, it should be OK, but if you find otherwise (or if anybody else has experience with this), please post here.

Thanks,

Brent

Thanks Brent, I sure will.  This is the first time using the indicator so I just wanted to make sure since I’m not used to the luxury of not removing and adding back listeners. :wink: