title: How to return two values in Kotlin?
body: <p>I currently return <code>liveDataName</code>, but I also want to return <code>liveDataImage</code>.</p>
  <pre><code>fun getProfileInfo(): LiveData&lt;String&gt; {
  
          val call: Call&lt;UserProfile&gt;? = NetworkService.getInstance()
                  .jsonApi
                  .getProfile()
          call?.enqueue(object : Callback&lt;UserProfile&gt;{
              override fun onResponse(call: Call&lt;UserProfile&gt;, response: Response&lt;UserProfile&gt;) {
                  if (response.isSuccessful) {
                      response.body()?.let {
                          liveDataName.value = it.username
                          liveDataImage.value = it.defaultAvatar
                      }
                  }
  
              }
  
              override fun onFailure(call: Call&lt;UserProfile&gt;, t: Throwable) {}
          })
  
          return liveDataName
      }
  </code></pre>