Select Device Fragment
RotationFragment to connect to a matching server (= pc/laptop)
Constructors
SelectDeviceFragment
Link copied to clipboard
fun SelectDeviceFragment()
Content copied to clipboard
Functions
clear Garbage
Link copied to clipboard
open override fun clearGarbage()
Content copied to clipboard
Set all listeners, ViewModels and shared references to null.
init Server List
Link copied to clipboard
private fun initServerList()
Content copied to clipboard
Registers an observer for ServerConnectionViewModel.getServerUrlListLiveData, which updates mServerList and refreshes adapter on data change.
on View Created
Link copied to clipboard
Called when the fragment is created, calls initServerList and initViews.
remove This Fragment
Link copied to clipboard
Removes this fragment.
Properties
lastSelectedItem
Link copied to clipboard
The last selected item in mListView, green highlight
mSelectDeviceButton
Link copied to clipboard
mServerList
Link copied to clipboard
The list of all available servers, updated by ServerConnectionViewModel
serverConnectionViewModel
Link copied to clipboard
The ServerConnectionViewModel, provides two way data bindings for ServerConnectionViewModel.serverUrlList