Thanks Thomas.  Final code for reference:

import com.google.gwt.user.client.Command;

private static native final String getVisibilityState() /*-{
  return $doc.visibilityState;
}-*/;

private static native final void listenForVisibilityChange(Command onChange) 
/*-{
  $doc.addEventListener("visibilitychange", $entry(function() {
    [email protected]::execute(*)();
  }), false);
}-*/;



-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to