public class NativeClickHandler
extends java.lang.Object
| Constructor and Description |
|---|
NativeClickHandler(android.content.Context context) |
NativeClickHandler(android.content.Context context,
java.lang.String dspCreativeId) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearOnClickListener(android.view.View view)
Clears the on click listener from all views in the the native ad view hierarchy.
|
void |
openClickDestinationUrl(java.lang.String clickDestinationUrl,
android.view.View view)
Handles resolving and opening the click destination url.
|
void |
setOnClickListener(android.view.View view,
ClickInterface clickInterface)
Sets the on click listener on all views in the native ad view hierarchy to invoke
ClickInterface.handleClick(View) when a view in the view hierarchy is clicked. |
public NativeClickHandler(android.content.Context context)
public NativeClickHandler(android.content.Context context,
java.lang.String dspCreativeId)
public void setOnClickListener(android.view.View view,
ClickInterface clickInterface)
ClickInterface.handleClick(View) when a view in the view hierarchy is clicked.view - The top view of the native ad view hierarchyclickInterface - The native ad implementing the click interfacepublic void clearOnClickListener(android.view.View view)
view - The top view of the native ad view hierarchy.public void openClickDestinationUrl(java.lang.String clickDestinationUrl,
android.view.View view)
clickDestinationUrl - The click destination urlview - The view on which to display the spinning progress view