my.onAppShow().
Parameters
Code Example
Remove Specific Listener
Remove All Listeners
AXML with Button
Related APIs
my.onAppShow
Listen for foreground events
my.offAppHide
Stop listening for background events
Stop listening for events when the Mini Program switches to foreground.
my.onAppShow().