app / com.ocean.ishareeconomy_android.lending / LendingActivity

LendingActivity

class LendingActivity : AppCompatActivity

Part of lending.

Activity responsible for displaying the lendobjects currently shared by the user

Constructors

<init>

Part of lending.

LendingActivity()

Properties

masterDetail

: Boolean, determines whether the screen is large enough that master detail views should be displayed at the same time

var masterDetail: Boolean

Functions

navigateToAdd

Method that navigates to the add lending objects screen fragment

fun navigateToAdd(): Unit

navigateToMaster

Method that navigates to the lending objects overview fragment

fun navigateToMaster(): Unit

onCreate

Method that is called when the activity is created

fun onCreate(savedInstanceState: Bundle?): Unit

onDetailClick

Method that navigates to the detail view when an list object in the lendingMasterFragment is clicked. It sets the blank LendingDetailFragment, which will be updated on initialisation by the repo

fun onDetailClick(): Unit