Package com.batch.android
Class AdvertisingID
- java.lang.Object
-
- com.batch.android.AdvertisingID
-
public final class AdvertisingID extends java.lang.ObjectObject that encapsulate advertising ID
-
-
Constructor Summary
Constructors Constructor Description AdvertisingID()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget()Get the advertising IDbooleanisLimited()Is the use of the advertising ID limitedbooleanisNotNull()Is the advertising ID not nullbooleanisReady()Tell if the process to retrieve advertising ID is already complete
-
-
-
Method Detail
-
isReady
public boolean isReady()
Tell if the process to retrieve advertising ID is already complete- Returns:
- true if the process is completed
-
get
@Nullable public java.lang.String get() throws java.lang.IllegalStateExceptionGet the advertising ID- Returns:
- The advertising ID if available, null otherwise
- Throws:
java.lang.IllegalStateException- if the advertising id is not available yet (checkisReady())
-
isLimited
public boolean isLimited() throws java.lang.IllegalStateExceptionIs the use of the advertising ID limited- Returns:
- true if the advertising ID limited
- Throws:
java.lang.IllegalStateException- if the advertising id is not available yet (checkisReady())
-
isNotNull
public boolean isNotNull()
Is the advertising ID not null- Returns:
- true if its not
-
-