public class

InApp

extends Object
java.lang.Object
   ↳ com.ad4screen.sdk.InApp

Class Overview

InApp
Class used by some SDK callbacks (setInAppReadyCallback, setInAppClickedCallback, setInAppDisplayedCallback)
You can retrieve id, template and customs parameters (can be null)

Summary

Public Methods
int getContainer()
Retrieve inapp container id where this in-app will be displayed in (can be R.layout.com_ad4screen_sdk_overlay for instance)
HashMap<String, String> getCustomParameters()
Retrieve custom parameters
String getDisplayTemplate()
Retrieve template name used by this in-app (can be "com_ad4screen_sdk_template_text" for instance)
String getId()
Retrieve inapp id
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public int getContainer ()

Retrieve inapp container id where this in-app will be displayed in (can be R.layout.com_ad4screen_sdk_overlay for instance)

Returns
  • inapp container id (where the in-app will be displayed inside the current activity)

public HashMap<String, String> getCustomParameters ()

Retrieve custom parameters

Returns
  • display or click custom parameters or null otherwise

public String getDisplayTemplate ()

Retrieve template name used by this in-app (can be "com_ad4screen_sdk_template_text" for instance)

Returns
  • inapp template name (as defined inside the user interface)

public String getId ()

Retrieve inapp id