bn.onAddToFavorites
▸ onAddToFavorites(callback
): void
description
Listen on user add this mini program to favorite event. Triggered when user click favorite button.
example
const handler = () => {}
bn.onAddToFavorites(handler)
Parameters
Name | Type |
---|---|
callback | (...args : any []) => any |
Returns
void