library / com.raphaelbussa.navutils.fragment / BaseFragment

BaseFragment

abstract class BaseFragment : Fragment

BaseFragment

Constructors

<init>

BaseFragment()

BaseFragment

Properties

rootView

var rootView: View?

View?

supportFragmentManager

val supportFragmentManager: FragmentManager?

FragmentManager?

toolbar

val toolbar: Toolbar?

Toolbar?

toolbarShadow

val toolbarShadow: View?

View?

Functions

findViewById

fun <T : View> findViewById(id: Int): T?

findViewById

onCreateView

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

onCreateView

onSupportBackPressed

fun onSupportBackPressed(bundle: Bundle): Boolean

onSupportBackPressed

removeSubtitle

fun removeSubtitle(): Unit

removeSubtitle

removeTitle

fun removeTitle(): Unit

removeTitle

setIcon

fun setIcon(icon: Int): Unit
fun setIcon(icon: Drawable): Unit

setIcon

setLayoutResource

abstract fun setLayoutResource(): Int

setLayoutResource

setNavigationIcon

fun setNavigationIcon(icon: Int): Unit
fun setNavigationIcon(icon: Drawable): Unit

setNavigationIcon

setNavigationOnClickListener

fun setNavigationOnClickListener(onClickListener: OnClickListener): Unit

setNavigationOnClickListener

setStatusBarColor

fun setStatusBarColor(color: Int): Unit

setStatusBarColor

setStatusBarColorRes

fun setStatusBarColorRes(color: Int): Unit

setStatusBarColorRes

setSubtitle

fun setSubtitle(subtitle: Int): Unit
fun setSubtitle(subtitle: String): Unit

setSubtitle

setSubtitleColor

fun setSubtitleColor(color: Int): Unit

setSubtitleColor

setSubtitleColorRes

fun setSubtitleColorRes(color: Int): Unit

setSubtitleColorRes

setSubtitlePost

fun setSubtitlePost(subtitle: String): Unit
fun setSubtitlePost(subtitle: Int): Unit

setSubtitlePost

setTitle

fun setTitle(title: Int): Unit
fun setTitle(title: String): Unit

setTitle

setTitleColor

fun setTitleColor(color: Int): Unit

setTitleColor

setTitleColorRes

fun setTitleColorRes(color: Int): Unit

setTitleColorRes

setTitlePost

fun setTitlePost(title: String): Unit
fun setTitlePost(title: Int): Unit

setTitlePost

Extension Functions

pushActivity

fun Fragment.pushActivity(target: KClass<*>, builder: ActivityBuilder.() -> Unit = {}): NavUtilsPushActivity

pushActivity

pushChromeCustomTab

fun Fragment.pushChromeCustomTab(builder: ChromeBuilder.() -> Unit = {}): NavUtilsPushChromeActivity

pushChromeCustomTab

pushFragment

fun Fragment.pushFragment(target: Fragment, builder: FragmentBuilder.() -> Unit = {}): NavUtilsPushFragment
fun Fragment.pushFragment(target: KClass<*>, builder: FragmentBuilder.() -> Unit = {}): NavUtilsPushFragment

pushFragment