# Routing Events

# onAppRoute

onAppRoute(Function callback)

Triggered when routing events are dispatched to the base library, before the base library executes routing logic.

# offAppRoute

offAppRoute(Function callback)

Cancels listening to the event.

Sample Code

const callback = () => {
  console.log('onAppRoute')
}
ft.onAppRoute(callback)


ft.offAppRoute(callback)

# onAppRouteDone

onAppRouteDone(Function callback)

Triggered when the animation corresponding to the route (such as page push, pop, etc.) completes.

# offAppRouteDone

offAppRouteDone(Function callback)

Cancels listening to the event.

Sample Code

const callback = () => {
  console.log('onAppRouteDone')
}
ft.onAppRouteDone(callback)


ft.offAppRouteDone(callback)
© FinClip with ❤ , Since 2017