Advertisement
Mashudi

MainView

May 16th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.79 KB | None | 0 0
  1. package com.example.masrobot.klikpesanantar.MainApp.Main
  2.  
  3. import android.content.Intent
  4. import com.example.masrobot.klikpesanantar.BaseContract.View
  5. import com.example.masrobot.klikpesanantar.MainApp.Model.Kategori
  6. import com.example.masrobot.klikpesanantar.MainApp.Model.Users
  7.  
  8. interface MainView : View {
  9.     // Passing data ke view
  10.     fun refreshKategoriList(kategoris: List<Kategori>)
  11.  
  12.     // toast jika data gagal di load
  13.     fun toast(message: String)
  14.  
  15.     // close Drawer
  16.     fun closeDrawer()
  17.  
  18.     // go to activity
  19.     fun onStartActivity(intent: Intent)
  20.  
  21.     // show menu item after login
  22.     fun menuItemWithAuth()
  23.  
  24.     // hide menu item before login
  25.     fun menuItemWithoutAuth()
  26.  
  27.     // sign In
  28.     fun signIn(requestCode: Int)
  29.  
  30.     // sign out
  31.     fun signOut()
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement