The event callback to call when a page hide event is triggered
Optional
excludeEvents: string[][Optional] An array of events that should not be hooked (if possible), unless no other events can be.
Optional
evtNamespace: string | string[][Optional] A Namespace to append to the event listeners so they can be uniquely identified and removed based on this namespace. This call also adds an additional unique "pageshow" namespace to the events so that only the matching "removePageHideEventListener" can remove these events. Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide
true - when at least one of the events was registered otherwise false
Listen to the pagehide and visibility changing to 'hidden' events, because the 'visibilitychange' uses an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.