| CLASS info |
| public class NativeView extends PPSNativeView implements INativeView |
| Native ad view. |
| Constructor name |
| NativeView(Context context) Native ad view constructor. |
| NativeView(Context context, AttributeSet attrs) Native ad view constructor. |
| NativeView(Context context, AttributeSet attrs, int defStyleAttr) Native ad view constructor. |
| NativeView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) Native ad view constructor. |
| Return | Method |
| void | destroy() Destroys NativeView. After this method is called, no other method can be called. |
| View | getAdSourceView() Obtains an ad source view. |
| View | getDescriptionView() Obtains an ad description view. |
| View | getCallToActionView() Obtains a button view. |
| View | getTitleView() Obtains a title view. |
| MediaView | getMediaView() Obtains a multimedia content view. |
| View | getIconView() Obtains a view containing small icons. |
| View | getImageView() Obtains an ad image view. |
| void | setAdSourceView(View adSourceView) Sets an ad source view. |
| void | setDescriptionView(View descriptionView) Sets an ad description view. |
| void | setCallToActionView(View view) Sets a button view. |
| void | setTitleView(View view) Sets a title view. |
| void | setMediaView(MediaView view) Sets a multimedia content view. |
| void | setNativeAd(NativeAd nativeAd) Sets a native ad. |
| void | setIconView(View view) Sets a view containing small icons. |
| void | setImageView(View view) Sets an ad image view. |
| void | gotoWhyThisAdPage() Goes to the page explaining why an ad is displayed. |
| constructor |
| public NativeView(Context context) |
| Native ad view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| constructor |
| public NativeView(Context context, AttributeSet attrs) |
| Native ad view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| attrs | Attributes in an XML element of an extended view. |
| constructor |
| public NativeView(Context context, AttributeSet attrs, int defStyleAttr) |
| Native ad view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| attrs | Attributes in an XML element of an extended view. |
| defStyleAttr | Default style. |
| constructor |
| public NativeView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) |
| Native ad view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| attrs | Attributes in an XML element of an extended view. |
| defStyleAttr | Default style. |
| defStyleRes | Resource ID. |
| Method |
| public void destroy() |
| Destroys NativeView. After this method is called, no other method can be called. |
| Method |
| public View getAdSourceView() |
| Obtains an ad source view. |
Return
| type | desc |
| View | Ad source view. |
| Method |
| public View getDescriptionView() |
| Obtains an ad description view. |
Return
| type | desc |
| View | Ad description view. |
| Method |
| public View getCallToActionView() |
| Obtains a button view. |
Return
| type | desc |
| View | Button view. |
| Method |
| public View getTitleView() |
| Obtains a title view. |
Return
| type | desc |
| View | View associated with title materials. |
| Method |
| public MediaView getMediaView() |
| Obtains a multimedia content view. |
Return
| type | desc |
| MediaView | Multimedia content view. |
| Method |
| public View getIconView() |
| Obtains a view containing small icons. |
Return
| type | desc |
| View | View containing small icons. |
| Method |
| public View getImageView() |
| Obtains an ad image view. |
Return
| type | desc |
| View | Ad image view. |
| Method |
| public void setAdSourceView(View adSourceView) |
| Sets an ad source view. |
Parameters
| Parameter name | Parameter desc |
| adSourceView | Ad source view. |
| Method |
| public void setDescriptionView(View descriptionView) |
| Sets an ad description view. |
Parameters
| Parameter name | Parameter desc |
| descriptionView | Ad description view. |
| Method |
| public void setCallToActionView(View view) |
| Sets a button view. |
Parameters
| Parameter name | Parameter desc |
| view | Button view. |
| Method |
| public void setTitleView(View view) |
| Sets a title view. |
Parameters
| Parameter name | Parameter desc |
| view | Title view. |
| Method |
| public void setMediaView(MediaView view) |
| Sets a multimedia content view. |
Parameters
| Parameter name | Parameter desc |
| view | Multimedia content view. |
| Method |
| public void setNativeAd(NativeAd nativeAd) |
| Sets a native ad. |
Parameters
| Parameter name | Parameter desc |
| nativeAd | Native ad object that has been gotten. |
| Method |
| public void setIconView(View view) |
| Sets a view containing small icons. |
Parameters
| Parameter name | Parameter desc |
| view | View containing small icons. |
| Method |
| public void setImageView(View view) |
| Sets an ad image view. |
Parameters
| Parameter name | Parameter desc |
| view | Ad image view. |
| Method |
| public void gotoWhyThisAdPage() |
| Goes to the page explaining why an ad is displayed. |