Dev Activity

abstract class DevActivity<T : ViewBinding>(@IdRes val hostId: Int? = null) : ActivityCompat, NavigationDelegate

Base class for androidx.activity.ComponentActivity

Author

Jimly A.

Since

31-May-20.

Constructors

Link copied to clipboard
fun DevActivity(@IdRes hostId: Int? = null)

instance for DevActivity class

Functions

Link copied to clipboard
fun getController(): NavController

method to get androidx.navigation.NavController from the Host Activity

Properties

Link copied to clipboard
val binding: T

the ViewBinding for current Activity

Link copied to clipboard
val hostId: Int? = null

Sources

Link copied to clipboard