VastVbActivity
VastVbActivity.
If your Activity contains to 0 or more ViewModels, I recommend you use VastVbActivity.
Here is an example in kotlin:
class MainActivity : VastVbActivity<ActivityMainBinding>() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Something to do
}
}
Content copied to clipboard
Parameters
VB
ViewBinding of the activity layout.
Inheritors
Properties
Functions
Link copied to clipboard
Get the ViewBinding. By default, it will throw a IllegalStateException.
Link copied to clipboard
Get default Snackbar for activity.