Feedback Fragment
Fragment that lets the user send feedback to a feedback server.
TODO: Deploy a real feedback server, currently this fragment does not actually send feedback to a server.
Constructors
FeedbackFragment
Link copied to clipboard
fun FeedbackFragment()
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.
dismiss Keyboard
Link copied to clipboard
private fun dismissKeyboard()
Content copied to clipboard
Dismisses the virtual keyboard.
get Input Text Field Text
Link copied to clipboard
Returns the text in mTextInputField.
is Keyboard Active
Link copied to clipboard
Whether or not the virtual keyboard is visible.
on Create View
Link copied to clipboard
open override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?
Content copied to clipboard
Called on view creation, returns an inflated view of this fragment.
on Feedback Posted
Link copied to clipboard
fun onFeedbackPosted()
Content copied to clipboard
Callback for when feedback has been sent to the server.
on View Created
Link copied to clipboard
Called when the view of this fragment is created, calls initViews.
remove This Fragment
Link copied to clipboard
private fun removeThisFragment()
Content copied to clipboard
Removes this fragment.
Properties
captureViewModel
Link copied to clipboard
The CaptureViewModel, used to access the server url and match id of the last match request
containerView
Link copied to clipboard
layout
Link copied to clipboard
mFragmentBackground
Link copied to clipboard
The dark background behind the fragment, calls removeThisFragment on click
mSendFeedbackButton
Link copied to clipboard
mTextInputField
Link copied to clipboard