I would assume an if statement.
Unless you're talking about having the app and the timer running in the background and pop up when it is done... that one you'll need to do some research on. Not sure off the top of my head how you would accomplish that.