Interface ISessionCallbacks
-
- All Known Implementing Classes:
APISession
public interface ISessionCallbacks
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
caughtSocketException(SocketException socketException)
caughtSocketExceptionvoid
establishedConnectionToTheInternet()
establishedConnectionToTheInternetString
getAccessToken()
getAccessTokenvoid
lostConnectionToTheInternet()
lostConnectionToTheInternetvoid
reportProxyAuthenticationRequired()
reportProxyAuthenticationRequiredEnums.RestartStatus
sessionIdExpired(String oldSid)
sessionIdExpiredvoid
setServerTime(Calendar serverTime)
setServerTimevoid
updateBytesSent(long bytes)
updateBytesSentvoid
updateUploadSpeed(float speed)
updateUploadSpeedvoid
waitForRenewal()
waitForRenewal
-
-
-
Method Detail
-
updateUploadSpeed
void updateUploadSpeed(float speed)
updateUploadSpeed- Parameters:
speed
-
-
updateBytesSent
void updateBytesSent(long bytes)
updateBytesSent- Parameters:
bytes
-
-
sessionIdExpired
Enums.RestartStatus sessionIdExpired(String oldSid)
sessionIdExpired- Parameters:
oldSid
-- Returns:
- True if session was refreshed successfully
-
lostConnectionToTheInternet
void lostConnectionToTheInternet()
lostConnectionToTheInternet
-
reportProxyAuthenticationRequired
void reportProxyAuthenticationRequired()
reportProxyAuthenticationRequired
-
establishedConnectionToTheInternet
void establishedConnectionToTheInternet()
establishedConnectionToTheInternet
-
setServerTime
void setServerTime(Calendar serverTime)
setServerTime- Parameters:
serverTime
- Server time to set
-
waitForRenewal
void waitForRenewal()
waitForRenewal
-
getAccessToken
String getAccessToken()
getAccessToken- Returns:
- Returns accessToken
-
caughtSocketException
void caughtSocketException(SocketException socketException)
caughtSocketException- Parameters:
socketException
- SocketException
-
-