public class POBAdvertisingIdClient
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static POBAdvertisingIdClient |
getInstance(android.content.Context context)
Returns the single instance of the POBAdvertisingIdClient, create if not already created.
|
java.lang.String |
getStoredAdvertisingId()
Returns the Android advertisement id if saved in local storage else returns given androidAid.
|
boolean |
getStoredLMTState()
Returns the Android advertisement id if saved in local storage else returns given state.
|
protected boolean |
isReadyToUpdate() |
protected void |
saveAndroidAid(java.lang.String androidAid)
Save the Android advertisement id in local storage for further use.
|
protected void |
saveLMTState(boolean state)
Save the Android advertisement id in local storage for further use.
|
boolean |
updateAAID()
This API update the Android Advertising ID info & LMT state in background and saves in
shared preference for next immediate Ad request.
|
public static POBAdvertisingIdClient getInstance(@NonNull android.content.Context context)
context - Valid application contextpublic boolean updateAAID()
protected boolean isReadyToUpdate()
protected void saveAndroidAid(@NonNull
java.lang.String androidAid)
protected void saveLMTState(boolean state)
@Nullable public java.lang.String getStoredAdvertisingId()
public boolean getStoredLMTState()