public class PMSDKConfig
extends java.lang.Object
| Constructor and Description |
|---|
PMSDKConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowAdvertisingId(boolean allow)
Indicates whether Advertisement ID should be sent in the request.
|
void |
allowLocationAccess(boolean allow)
Enables or disable SDK location detection.
|
OpenBidSDK.HashType |
getAdvertisingIdHashType() |
POBApplicationInfo |
getApplicationInfo() |
java.lang.String |
getGdprConsent()
Method to get GDPR consent string if publisher is granted GDPR consent
|
POBLocation |
getLocation() |
long |
getLocationDetectionDurationInMillis()
Returns time interval used to get the two consecutive location
|
POBUserInfo |
getUserInfo() |
boolean |
isAllowAdvertisingId() |
java.lang.Boolean |
isCoppa() |
java.lang.Boolean |
isGdprEnabled()
Method to check whether publisher is GDPR regulated or not
|
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 |
setApplicationInfo(POBApplicationInfo applicationInfo)
Sets the application information.
|
void |
setCoppa(boolean coppaState)
Sets COPPA state.
|
void |
setGdprConsent(java.lang.String gdprConsent)
Method to set GDPR consent string if publisher is granted GDPR consent
|
void |
setGdprEnabled(java.lang.Boolean gdprEnabled)
Method to set GDPR regulation value
By default GDPR value is set to false
|
void |
setHashTypeForAdvertisingId(OpenBidSDK.HashType advertisingIdHashType)
Apply following hashing on udid before sending to server, Possible values are:
RAW,
SHA1,
MD5
Default is Raw
|
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 typepublic POBLocation getLocation()
public void setLocation(POBLocation location)
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 usagepublic OpenBidSDK.HashType getAdvertisingIdHashType()
public void setHashTypeForAdvertisingId(OpenBidSDK.HashType advertisingIdHashType)
advertisingIdHashType - hash type for udid.public POBUserInfo getUserInfo()
public void setUserInfo(POBUserInfo userInfo)
userInfo - value of POBUserInfo typepublic POBApplicationInfo getApplicationInfo()
public void setApplicationInfo(POBApplicationInfo applicationInfo)
applicationInfo - value of POBApplicationInfo typepublic java.lang.Boolean isGdprEnabled()
public void setGdprEnabled(java.lang.Boolean gdprEnabled)
gdprEnabled - provide true, if publisher want to grant GDPR regulations else provide falsepublic java.lang.String getGdprConsent()
public void setGdprConsent(java.lang.String gdprConsent)
gdprConsent - provide GDPR consent string