onCustomTapProductCard property
This callback is triggered when the user clicks the product on the short video/livestream/replay
The host app can customize the click event processing logic of the product card by setting the callback. For example, the host apps could open their PDP page instead of Firework PDP by setting this callback.
Implementation
CustomTapProductCardCallback? get onCustomTapProductCard =>
_onCustomTapProductCard;
Implementation
set onCustomTapProductCard(CustomTapProductCardCallback? value) {
_onCustomTapProductCard = value;
final nativeMethodName =
ShoppingNativeMethodName.setCustomTapProductCardEnabled.name;
FWMethodChannelUtil.getShoppingChannel().invokeMethod(
nativeMethodName,
value != null,
);
}