public class POBSDKConfig
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalUserId(POBExternalUserId userId)
Adds the External user id /Data Partner ids which helps publisher in better user targeting
|
void |
allowAdvertisingId(boolean allow)
Indicates whether Advertisement ID should be sent in the request.
|
void |
allowLocationAccess(boolean allow)
Enables or disable SDK location detection.
|
POBApplicationInfo |
getApplicationInfo() |
java.util.Map<java.lang.String,java.util.List<POBExternalUserId>> |
getExternalUserIds()
Get the map of User defined data partner ids
|
POBLocation |
getLocation() |
long |
getLocationDetectionDurationInMillis()
Returns time interval used to get the two consecutive location
|
<T> T |
getMeasurementProvider(java.lang.String className)
Method to get OM measurement provider instance
|
POBUserInfo |
getUserInfo() |
boolean |
isAllowAdvertisingId() |
java.lang.Boolean |
isCoppa() |
boolean |
isLocationAccessAllowed()
Determines if location detection is enabled.
|
boolean |
isRequestSecureCreative() |
boolean |
isUseInternalBrowser()
Returns true if landing page for an ad would opened in internal browser else returns false
|
void |
removeAllExternalUserIds()
removes all data partner ids
|
void |
removeExternalUserIds(java.lang.String source)
removes the Data partner ids of a particular source
|
void |
setApplicationInfo(POBApplicationInfo applicationInfo)
Sets the application information.
|
void |
setCoppa(boolean coppaState)
Sets COPPA state.
|
void |
setLocation(POBLocation location) |
void |
setLocationDetectionDurationInMillis(long durationInMillis)
Sets the duration for retrieving the location of user.
|
void |
setRequestSecureCreative(boolean requestSecureCreative)
Requests secure ads from ad server using https protocol.
|
void |
setUseInternalBrowser(boolean internalBrowserState)
Set to true if landing page for an ad should be opened in internal browser else set to false.
|
void |
setUserInfo(POBUserInfo userInfo)
Sets the user's information.
|
public boolean isLocationAccessAllowed()
public void allowLocationAccess(boolean allow)
Permissions for coarse or fine location detection may be required.
allow - enable or disable auto location detectionpublic long getLocationDetectionDurationInMillis()
public void setLocationDetectionDurationInMillis(long durationInMillis)
durationInMillis - time in milli secondpublic boolean isUseInternalBrowser()
public void setUseInternalBrowser(boolean internalBrowserState)
internalBrowserState - value of boolean type@Nullable public POBLocation getLocation()
public void setLocation(@Nullable
POBLocation location)
@Nullable public java.lang.Boolean isCoppa()
public void setCoppa(boolean coppaState)
coppaState - Coppa statepublic boolean isRequestSecureCreative()
public void setRequestSecureCreative(boolean requestSecureCreative)
requestSecureCreative - true for enable secure creative mode. Default is set to false.public boolean isAllowAdvertisingId()
public void allowAdvertisingId(boolean allow)
allow - state of advertisement id usage@Nullable public POBUserInfo getUserInfo()
public void setUserInfo(@Nullable
POBUserInfo userInfo)
userInfo - value of POBUserInfo type@Nullable public POBApplicationInfo getApplicationInfo()
public void setApplicationInfo(@Nullable
POBApplicationInfo applicationInfo)
applicationInfo - value of POBApplicationInfo type@Nullable
public <T> T getMeasurementProvider(@NonNull
java.lang.String className)
T - generic parameter for Measurement ProviderclassName - name of measurement provider classpublic void addExternalUserId(@NonNull
POBExternalUserId userId)
userId - instance of POBExternalUserId class@NonNull public java.util.Map<java.lang.String,java.util.List<POBExternalUserId>> getExternalUserIds()
public void removeExternalUserIds(@NonNull
java.lang.String source)
source - name of sourcepublic void removeAllExternalUserIds()