Interface ISessionCallbacks

  • All Known Implementing Classes:
    APISession

    public interface ISessionCallbacks
    • 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