click method Null safety
Notifies that the in-app area within the app has been exposed to the user.
- Parameter
trackingLink
tracking link uri - Parameter
onSuccess
Callback to be invoked when tracking link is successfully handled. - Parameter
onFailure
Callback to be invoked when any error occurs. - Return
true
if all of the following conditions are met below,false
otherwise. - If the SDK is initialized and enabled.
- If tracking link is successfully handled.
Implementation
static Future<bool> click(
{required String trackingLink,
void Function()? onSuccess,
void Function(String)? onFailure}) {
Logger.called('click');
return _placement.click(
trackingLink: trackingLink,
onSuccess: onSuccess,
onFailure: onFailure,
);
}