I would like to avoid forcing the user of my class to use "WAIT FOR" while waiting for a class routine to finish moving a View.
Example (Duration, SomeView, ... fake stuff, only as example)
I wish the user-developer could write like this:
And not like:
Example (Duration, SomeView, ... fake stuff, only as example)
B4X:
' clsMyClass
Public Sub Move
SomeView.SetLayoutAnimated(Duration, 100, ...)
End Sub
I wish the user-developer could write like this:
B4X:
objMyClass.Move
Log("Done") ' <--- this line executed only after Duration ms
And not like:
B4X:
Wait For (objMyClass.Move) Complete(Unused As Boolean)
Log("Done") ' <--- this line executed only after Duration ms