Ayden
06/26/2018, 2:06 PMval httpLoggingInterceptor = HttpLoggingInterceptor().level = HttpLoggingInterceptor.Level.BODY
Andreas Sinz
06/26/2018, 2:07 PMval httpLoggingInterceptor = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BODY
}
Ayden
06/26/2018, 2:08 PMapply
is telling to carry out another action after declare the variable?Andreas Sinz
06/26/2018, 2:09 PMAyden
06/26/2018, 2:10 PMbreandan
06/27/2018, 12:56 AMHttpLoggingInterceptor.Level.BODY
so it becomes val httpLoggingInterceptor = HttpLoggingInterceptor().apply { level = BODY }
chi
06/27/2018, 6:55 PMbreandan
07/07/2018, 6:41 PM