ClickHandler

interface ClickHandler

Deprecated

Interface to be implemented by Objects that will handle clicks on native ads in a custom fashion.

Deprecated

This interface is deprecated and will be removed in future releases. Publishers should not interfere client-side with clicks to avoid counting issues. However, if you still need to be warn in case of click, please use OnClickListener instead.

Functions

Link copied to clipboard
abstract fun handleClick(@Nullable clickUrl: String, @NonNull nativeAdElement: SASNativeAdElement): Boolean
This method will be called whenever a click is performed on the native ad, before the default click handling occurs, thus giving an opportunity to override the default behaviour