Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    StatusListener
    interface StatusListener
    
    Listener interface used with getStatus to receive the status of a UrlRequest.
    Summary
    
    Public methods
    
      onStatus
      
      abstract fun onStatus(status: Int): Unit
      Invoked on UrlRequest's Executor's thread when request status is obtained.
      
        
          
            | Parameters | 
          
          
            status | 
            Int: integer representing the status of the request. It is one of the values defined in Status. Value is android.net.http.UrlRequest.Status#INVALID, android.net.http.UrlRequest.Status#IDLE, android.net.http.UrlRequest.Status#WAITING_FOR_STALLED_SOCKET_POOL, android.net.http.UrlRequest.Status#WAITING_FOR_AVAILABLE_SOCKET, android.net.http.UrlRequest.Status#WAITING_FOR_DELEGATE, android.net.http.UrlRequest.Status#WAITING_FOR_CACHE, android.net.http.UrlRequest.Status#DOWNLOADING_PAC_FILE, android.net.http.UrlRequest.Status#RESOLVING_PROXY_FOR_URL, android.net.http.UrlRequest.Status#RESOLVING_PROXY_FOR_URL, android.net.http.UrlRequest.Status#RESOLVING_HOST_IN_PAC_FILE, android.net.http.UrlRequest.Status#ESTABLISHING_PROXY_TUNNEL, android.net.http.UrlRequest.Status#RESOLVING_HOST, android.net.http.UrlRequest.Status#CONNECTING, android.net.http.UrlRequest.Status#SSL_HANDSHAKE, android.net.http.UrlRequest.Status#SENDING_REQUEST, android.net.http.UrlRequest.Status#WAITING_FOR_RESPONSE, or android.net.http.UrlRequest.Status#READING_RESPONSE | 
          
        
      
     
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]