8

Jul 05 6:25 AM - Codeshare

 2 years ago
source link: https://codeshare.io/wnxJzJ
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Jul 05 6:25 AM

xxxxxxxxxx
}
package com.naufaldystd.gameformaapp.ui.home.paging
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.paging.CombinedLoadStates
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import androidx.paging.PagingData
import androidx.recyclerview.widget.LinearLayoutManager
import com.naufaldystd.core.data.Resource
import com.naufaldystd.core.data.source.local.entity.GameEntity
import com.naufaldystd.core.data.source.paging.GamePagingAdapter
import com.naufaldystd.core.data.source.paging.ui.loading.LoadingStateAdapter
import com.naufaldystd.core.domain.model.Game
import com.naufaldystd.core.ui.GameAdapter
import com.naufaldystd.core.utils.DataMapper
import com.naufaldystd.gameformaapp.databinding.FragmentHomeBinding
import com.naufaldystd.gameformaapp.ui.detail.DetailGameActivity
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.launch
@AndroidEntryPoint
class GamePagingFragment : Fragment() {
  private var _binding: FragmentHomeBinding? = null
  private val binding get() = _binding!!
  private val homeViewModel : GamePagingViewModel by viewModels()
  private lateinit var gameAdapter : GamePagingAdapter

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK