app / sg.edu.ntu.scse.cz2006.gymbuddies / MainActivity

MainActivity

open class MainActivity : AppCompatActivity

The application's main activity This activity will contain data regarding the various fragments and is mainly used for Jetpack

Author
Chiayu, Kenneth

Since
2019-09-06

Constructors

<init>

The application's main activity This activity will contain data regarding the various fragments and is mainly used for Jetpack

MainActivity()

Properties

mAppBarConfiguration

The app bar configuration object

var mAppBarConfiguration: AppBarConfiguration!

Functions

logout

Logs a user out of the application

open fun logout(): Unit

onCreate

Internal lifecycle function when this activity is created

open fun onCreate(savedInstanceState: Bundle?): Unit

onRequestPermissionsResult

Internal lifecycle function for if we are granted a permission We use this for the location permission

open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String!>, grantResults: IntArray): Unit

onSupportNavigateUp

Internal function to override if the activity supports going back

open fun onSupportNavigateUp(): Boolean