app / com.otago.open / SelectFragment

SelectFragment

class SelectFragment : Fragment

The class for the fragment to select / fetch the courses

Types

CourseService

Coordinates fetching the course web-pages from the university website Use CourseService.startService to begin

class CourseService

Constructors

<init>

The class for the fragment to select / fetch the courses

SelectFragment()

Functions

notify

Sets the adapterItems and marks it as being correct Also updates the UI if it exists

fun notify(links: List<CourseItem>?): Unit

onActivityCreated

Handles the creation of this activity, and starts the coroutine service to list the courses

fun onActivityCreated(savedInstanceState: Bundle?): Unit

onCreate

Entry point for creating a SelectFragment Ensure that the instance is retained on back button press

fun onCreate(savedInstanceState: Bundle?): Unit

onCreateView

Entry point of the SelectFragment view.

fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

onSaveInstanceState

Event handler for saving the state when the user navigates away or rotates the screen

fun onSaveInstanceState(outState: Bundle): Unit