public final class

InMobiSdk

extends Object
java.lang.Object
   ↳ com.inmobi.sdk.InMobiSdk

Class Overview

Constants and settings that have effect across the InMobi SDK.

Summary

Nested Classes
enum InMobiSdk.AgeGroup  
enum InMobiSdk.Education  
enum InMobiSdk.Gender  
enum InMobiSdk.LogLevel  
Constants
String IM_GDPR_CONSENT_AVAILABLE Populate this key to consentObject with boolean value.
Public Constructors
InMobiSdk()
Public Methods
static Map<String, String> getUidMap(Map<String, Boolean> configIncludeIdsMap, boolean includeIds)
only for areas sdk rd call no thread-safe
static String getVersion()
Use this to get the version of the SDK.
static void init(Context context, String accountId)
Initialize the sdk.
static void setAge(int age)
Set the user's age for targeting purposes.
static void setAgeGroup(InMobiSdk.AgeGroup group)
Set the user's age group for targeting purposes.
static void setApplicationMuted(boolean muted)
static void setAreaCode(String areaCode)
Set the area code for targeting purposes.
static void setEducation(InMobiSdk.Education education)
Set the educational qualifications of the user for targeting purposes.
static void setGender(InMobiSdk.Gender gender)
Set the user's gender for targeting purposes.
static void setInterests(String interests)
Set the user's interest areas for targeting purposes.
static void setLanguage(String language)
Set the language for targeting purposes.
static void setLocation(Location location)
Set the user's location for targeting purposes.
static void setLocationWithCityStateCountry(String city, String state, String country)
Set specific location parameters for targeting purposes.
static void setLogLevel(InMobiSdk.LogLevel logLevel)
Control the verbosity of the logs printed by the Ads SDK.
static void setPostalCode(String postalCode)
Set the postal code for targeting purposes.
static void setYearOfBirth(int yearOfBirth)
Set the user's year of birth for targeting purposes.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String IM_GDPR_CONSENT_AVAILABLE

Populate this key to consentObject with boolean value.

Constant Value: "gdpr_consent_available"

Public Constructors

public InMobiSdk ()

Public Methods

public static Map<String, String> getUidMap (Map<String, Boolean> configIncludeIdsMap, boolean includeIds)

only for areas sdk rd call no thread-safe

public static String getVersion ()

Use this to get the version of the SDK.

Returns
  • The version of the SDK.

public static void init (Context context, String accountId)

Initialize the sdk. This must be called before any other API for the SDK is used.

public static void setAge (int age)

Set the user's age for targeting purposes.

public static void setAgeGroup (InMobiSdk.AgeGroup group)

Set the user's age group for targeting purposes.

public static void setApplicationMuted (boolean muted)

public static void setAreaCode (String areaCode)

Set the area code for targeting purposes.

public static void setEducation (InMobiSdk.Education education)

Set the educational qualifications of the user for targeting purposes.

public static void setGender (InMobiSdk.Gender gender)

Set the user's gender for targeting purposes.

public static void setInterests (String interests)

Set the user's interest areas for targeting purposes.

public static void setLanguage (String language)

Set the language for targeting purposes.

public static void setLocation (Location location)

Set the user's location for targeting purposes.

public static void setLocationWithCityStateCountry (String city, String state, String country)

Set specific location parameters for targeting purposes.

public static void setLogLevel (InMobiSdk.LogLevel logLevel)

Control the verbosity of the logs printed by the Ads SDK.

Parameters
logLevel choose from DEBUG, or NONE

public static void setPostalCode (String postalCode)

Set the postal code for targeting purposes.

public static void setYearOfBirth (int yearOfBirth)

Set the user's year of birth for targeting purposes.