Mavzu: Baraka – Savdo online savdo tizimini loyihalash Reja



Download 325,71 Kb.
bet12/13
Sana01.07.2022
Hajmi325,71 Kb.
#721978
1   ...   5   6   7   8   9   10   11   12   13
Bog'liq
b9ElG9exKYpl2zjoqrbhraAGvQ3X7jWQ

private fun timer() {

countDownTimer?.cancel()
countDownTimer = object: CountDownTimer(60000, 3000){
override fun onTick(millisUntilFinished: Long) {
if (binding.viewPager.currentItem == count - 1)
binding.viewPager.currentItem = 0
else
binding
.viewPager.currentItem++
}

override fun onFinish() {
timer()
}
}
countDownTimer?.start()
}

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if(!EventBus.getDefault().isRegistered(this)){
EventBus.getDefault().register(this)
}
}

override fun onDestroy() {
countDownTimer?.cancel()
if(EventBus.getDefault().isRegistered(this)){
EventBus.getDefault().unregister(this)
}
super.onDestroy()
}

@Subscribe


fun onEvent(event: EventModel){
if(event.command == Constants.EVENT_UPDATE_FAVORITE){
loadData()
}


  • package uz.bdm.base.screen.main.makeorder

    import android.Manifest
    import android.content.pm.PackageManager
    import android.graphics.Color
    import android.view.MotionEvent
    import android.view.View
    import androidx.core.app.ActivityCompat
    import com.google.android.gms.location.FusedLocationProviderClient
    import com.google.android.gms.location.LocationServices
    import com.google.android.gms.maps.CameraUpdateFactory
    import com.google.android.gms.maps.GoogleMap
    import com.google.android.gms.maps.OnMapReadyCallback
    import com.google.android.gms.maps.SupportMapFragment

    Download 325,71 Kb.

    Do'stlaringiz bilan baham:
  • 1   ...   5   6   7   8   9   10   11   12   13




    Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
    ma'muriyatiga murojaat qiling

    kiriting | ro'yxatdan o'tish
        Bosh sahifa
    юртда тантана
    Боғда битган
    Бугун юртда
    Эшитганлар жилманглар
    Эшитмадим деманглар
    битган бодомлар
    Yangiariq tumani
    qitish marakazi
    Raqamli texnologiyalar
    ilishida muhokamadan
    tasdiqqa tavsiya
    tavsiya etilgan
    iqtisodiyot kafedrasi
    steiermarkischen landesregierung
    asarlaringizni yuboring
    o'zingizning asarlaringizni
    Iltimos faqat
    faqat o'zingizning
    steierm rkischen
    landesregierung fachabteilung
    rkischen landesregierung
    hamshira loyihasi
    loyihasi mavsum
    faolyatining oqibatlari
    asosiy adabiyotlar
    fakulteti ahborot
    ahborot havfsizligi
    havfsizligi kafedrasi
    fanidan bo’yicha
    fakulteti iqtisodiyot
    boshqaruv fakulteti
    chiqarishda boshqaruv
    ishlab chiqarishda
    iqtisodiyot fakultet
    multiservis tarmoqlari
    fanidan asosiy
    Uzbek fanidan
    mavzulari potok
    asosidagi multiservis
    'aliyyil a'ziym
    billahil 'aliyyil
    illaa billahil
    quvvata illaa
    falah' deganida
    Kompyuter savodxonligi
    bo’yicha mustaqil
    'alal falah'
    Hayya 'alal
    'alas soloh
    Hayya 'alas
    mavsum boyicha


    yuklab olish