SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

API for displaying progress to the user.

Open calebd opened this issue 12 years ago • 3 comments

calebd avatar Nov 11 '13 03:11 calebd

For the web view based authentication, a hud style progress indicator shouldn't be used as the web view can be usable before the page loads all its elements.

The first step should be to implement showing the network activity indicator.

mouhcine avatar Jan 21 '14 17:01 mouhcine

Here is what I'm thinking. I'll add a beginBackgroundActivity and endBackgroundActivity on SimpleAuthProvider. Each provider will be responsible for incrementing and decrementing that count. Then, the developer using SimpleAuth can register an "activity adapter" that gets sent messages to show and hide a progress view. That class will be responsible for showing or hiding whatever hud you like.

That's the best way I can think to do it without forcing people to use a certain hud library. What do you think?

calebd avatar Jan 21 '14 18:01 calebd

Letting the developer decide which progress view to use is definitely the best choice.

mouhcine avatar Jan 22 '14 13:01 mouhcine