Active Screen State Flag

This has to be easy...

I want to set a flag to indicate if my data field is currently actively displayed -vs- hidden (say, you swipe left/right to show a different screen).

I know onUpdate fires every second (data field).

For a data field, is onShow() (set flag to true) and onHide() (set flag to false) the best approach? As a failsafe, I could also set the flag to true in onUpdate() (every second)?