Skip to main content
Use this API to stop listening for foreground transition events that were registered with my.onAppShow().

Parameters

Code Example

Remove Specific Listener

Remove All Listeners

AXML with Button

Pass the same callback function reference to my.offAppShow() that was used with my.onAppShow() to remove only that specific listener.

my.onAppShow

Listen for foreground events

my.offAppHide

Stop listening for background events