-
public final class Network
-
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>activeDeliveriesprivate StringapiKey
-
Constructor Summary
Constructors Constructor Description Network(Context context, FlushWorker flushWorker, String apiKey)
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getActiveDeliveries()final StringgetApiKey()final UnitsetApiKey(String apiKey)final StringdataPush(BatchData data)final StringnewSession(NewSessionBodyInput data)final UnitcompleteSession(String clientSessionID)final UnitsendSDKLogs(List<SDKLogEntry> logs, Integer pendingRemoteLogsCount, String appState)final BooleanvalidateToken()Validates the current API token for dev mode privileges final UnitsetTriggerEvent(String clientSessionID, String event)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 <ERROR CLASS> getActiveDeliveries()
-
newSession
final String newSession(NewSessionBodyInput data)
-
completeSession
final Unit completeSession(String clientSessionID)
-
sendSDKLogs
final Unit sendSDKLogs(List<SDKLogEntry> logs, Integer pendingRemoteLogsCount, String appState)
-
validateToken
final Boolean validateToken()
Validates the current API token for dev mode privileges
-
setTriggerEvent
@RequiresApi(value = 23) final Unit setTriggerEvent(String clientSessionID, String event)
-
hasPendingRequests
final Boolean hasPendingRequests()
Check if there are pending network requests
-
getPendingRequestsCount
final Integer getPendingRequestsCount()
Get the count of pending network requests
-
-
-
-