Application.screenshot, how to tell when finished?

I want to take a screenshot and do something with it.

How can i tell the screenshot is finished so I can move on to the next step?

It’s finished as soon as you call the function. This is the case for all functions ever, unless they explicitly specify that they’re async.

–Eric

But you can’t access the file immediately? So how can i tell when the screenshot is written so I can use it in something like a tweet or do I just have to make a timer which waits for a half second and hopes the device has finished by then?

Sure you can.

–Eric

Clearly I am doing something wrong, because I am overwriting a previous file and if I don’t wait I appear to get the file I was trying to write over. I guess I need to test more.