bn.onAppHide
• onAppHide: (cb
: AppHideCallback
) => void
description
Listens on the event that Mini Program is switched to background. The callback timing for this event is consistent with that of App.onHide
.
Use bn.onHide
, bn.offHide
for MiniGame.
example
Type declaration
▸ (cb
): void
Parameters
Name | Type |
---|---|
cb | AppHideCallback |
Returns
void
#
AppHideCallbackƬ AppHideCallback: () => void
Type declaration
▸ (): void
Returns
void