AndroidLogger

class AndroidLogger<M, E, F>(tag: String) : MobiusLoop.Logger<M, E, F>

Constructors

Link copied to clipboard
constructor(tag: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun afterInit(model: M, result: First<M, F>)

Called right after the Init.init function is called.

Link copied to clipboard
open override fun afterUpdate(model: M, event: E, result: Next<M, F>)

Called right after the Update.update function is called.

Link copied to clipboard
open override fun beforeInit(model: M)

Called right before the Init.init function is called.

Link copied to clipboard
open override fun beforeUpdate(model: M, event: E)

Called right before the Update.update function is called.

Link copied to clipboard
open override fun exceptionDuringInit(model: M, exception: Throwable)

Called if the Init.init invocation throws an exception. This is a programmer error; Mobius is in an undefined state if it happens.

Link copied to clipboard
open override fun exceptionDuringUpdate(model: M, event: E, exception: Throwable)

Called if the Update.update invocation throws an exception. This is a programmer error; Mobius is in an undefined state if it happens.