Quark #

Modules #

Quark v1.2.0 Documentation


quark/nav #

Enum: NavStatus #

  • Init
  • Foreground
  • Background

Class: NavigationStatus #

0=init or exit,1=background,2=foreground

When the component leaves

When the component enters the background

When the component enters the foreground

Class: Navigation #

When initializing navigation, return a focus view

Called when a navigation component is created

  • @param animate?: Uint
  • @param animate:

Called when a navigation component is unmounted

  • @param animate?: Uint
  • @param animate:
  • When a navigation event occurs, the system will first send the event to the focus view,
    If the event can be successfully transmitted to root,
    The event will ultimately be sent to the top of the current navigation list stack
  • If false is returned here,
    it will continue to pass to the bottom of the navigation list stack,
    Until it returns true or reaches the bottom of the stack to exit the application
  • @return boolean

Called when the remote control presses OK

  • @param focus: View
  • Called when the remote control presses Up
  • The focus will not change in any way is returning null
  • @param focus: View|null
  • @return View|null
  • Called when the remote control presses Down
  • The focus will not change in any way is returning null
  • @param focus: View|null
  • @return View|null
  • Called when the remote control presses Left
  • The focus will not change in any way is returning null
  • @param focus: View|null
  • @return View|null
  • Called when the remote control presses Right
  • The focus will not change in any way is returning null
  • @param focus: View|null
  • @return View|null

When pressing the menu button, it will be called up

Class: NavPageCollection #

  • enableAnimate:

Add a navigation page to the end and display

Remove pages from the end of the navigation

Class: Navbar #

Set navbar back text

Set navbar title text

Class: NavPage #