ui / com.schibsted.account.ui.ui / BaseFragment

BaseFragment

abstract class BaseFragment : Fragment, AnimationListener

Constructors

<init>

BaseFragment()

Properties

keyboardListener

var keyboardListener: KeyboardListener?

The keyboard manager allowing to interact with the state of the soft keyboard

navigationListener

var navigationListener: NavigationListener?

the navigation controller used to request a navigation

Functions

displayErrorDialog

fun displayErrorDialog(error: ClientError, errorMessage: String? = null): Unit

onAnimationEnd

open fun onAnimationEnd(animation: Animation?): Unit

onAnimationRepeat

open fun onAnimationRepeat(animation: Animation?): Unit

onAnimationStart

open fun onAnimationStart(animation: Animation?): Unit

onCreateAnimation

open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation

registerKeyboardController

fun registerKeyboardController(keyboardListener: KeyboardListener): Unit

registerNavigationController

fun registerNavigationController(navigationListener: NavigationListener): Unit

this method is used to register the navigation controller

unregisterKeyboardController

fun unregisterKeyboardController(): Unit

unregisterNavigationController

fun unregisterNavigationController(): Unit

free the reference to the navigation controller

Inheritors

FlowFragment

abstract class FlowFragment<in T> : BaseFragment, KeyboardVisibilityListener, FlowView<T>

a Fragment used to represents a part of a UI flow, as such, this fragment can continue a flow. the flow could be continue thanks to the keyboard or a button.

InboxFragment

class InboxFragment : BaseFragment

WebFragment

open class WebFragment : BaseFragment

a Fragment used to display a website into the application