interface OnRecyclerViewInteractedListener<T : ViewHolder!>
The interface allow RecyclerView.Adapter to send notify observer of view interactions
Author
Chia Yu
Since
2019-10-22
onViewInteracted |
interface for subject to sent notification and for observer to implementation abstract fun onViewInteracted(view: View!, holder: T, action: Int): Unit |
BuddyListFragment |
The fragment display list of buddies (favoured user) of current user it allow user to view profile information, start chat and un-favour of user open class BuddyListFragment : Fragment, AppConstants, OnRecyclerViewInteractedListener<ViewHolder!> |
BuddySearchResultActivity |
This is the display buddy search result it gets searching condition from Search buddies fragment, and perform query to Firestore After getting response, it display other users on Recycler view. User can then interact and add them as buddy open class BuddySearchResultActivity : AppCompatActivity, AppConstants, OnRecyclerViewInteractedListener<ViewHolder!> |
ChatActivity |
The Activity displaying chat history between another user, and allows user to sent and receive message. open class ChatActivity : AppCompatActivity, AppConstants, OnClickListener, OnRecyclerViewInteractedListener<ViewHolder!> |
ChatListFragment |
The fragment display list of buddies (favoured user) of current user it allow user to view profile information, start chat and un-favour of user open class ChatListFragment : Fragment, AppConstants, OnRecyclerViewInteractedListener<ChatViewHolder!> |