-
public final class Network
-
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentHashMap<String, String>activeDeliveriesprivate StringapiKey
-
Constructor Summary
Constructors Constructor Description Network(Context context, FlushWorker flushWorker, String apiKey)
-
Method Summary
Modifier and Type Method Description final ConcurrentHashMap<String, String>getActiveDeliveries()final StringgetApiKey()final UnitsetApiKey(String apiKey)final StringdataPush(BatchData data, String idempotencyKey)final StringnewSession(NewSessionBodyInput data)final UnitcompleteSession(String clientSessionID)final BooleanvalidateToken()Validates the current API token for dev mode privileges final UnitsetTriggerEvent(String clientSessionID, String event, Double timestamp)final BooleanhasPendingRequests()Check if there are pending network requests final IntegergetPendingRequestsCount()Get the count of pending network requests -
-
Constructor Detail
-
Network
Network(Context context, FlushWorker flushWorker, String apiKey)
-
-
Method Detail
-
getActiveDeliveries
final ConcurrentHashMap<String, String> getActiveDeliveries()
-
newSession
final String newSession(NewSessionBodyInput data)
-
completeSession
final Unit completeSession(String clientSessionID)
-
validateToken
final Boolean validateToken()
Validates the current API token for dev mode privileges
-
setTriggerEvent
@RequiresApi(value = 23) final Unit setTriggerEvent(String clientSessionID, String event, Double timestamp)
-
hasPendingRequests
final Boolean hasPendingRequests()
Check if there are pending network requests
-
getPendingRequestsCount
final Integer getPendingRequestsCount()
Get the count of pending network requests
-
-
-
-