Documentation
¶
Index ¶
Constants ¶
const ReceivePageID = "Receive"
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
Types ¶
type D ¶
type D = layout.Dimensions
type Page ¶
type Page struct { *load.Load // GenericPageModal defines methods such as ID() and OnAttachedToNavigator() // that helps this Page satisfy the app.Page interface. It also defines // helper methods for accessing the PageNavigator that displayed this page // and the root WindowNavigator. *app.GenericPageModal // contains filtered or unexported fields }
func (*Page) HandleUserInteractions ¶
func (pg *Page) HandleUserInteractions()
HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.
func (*Page) Layout ¶
Layout draws the page UI components into the provided C to be eventually drawn on screen. Part of the load.Page interface.
func (*Page) OnDismiss ¶
func (pg *Page) OnDismiss()
OnDismiss is like OnNavigatedFrom but OnDismiss is called if this page is displayed as a modal while OnNavigatedFrom is called if this page is displayed as a full page. Either OnDismiss or OnNavigatedFrom is called after the modal is dismissed. NOTE: The modal may be re-displayed on the app's window, in which case OnResume() will be called again. This method should not destroy UI components unless they'll be recreated in the OnResume() method.
func (*Page) OnNavigatedFrom ¶
func (pg *Page) OnNavigatedFrom()
OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.
func (*Page) OnNavigatedTo ¶
func (pg *Page) OnNavigatedTo()
OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.
func (*Page) OnResume ¶
func (pg *Page) OnResume()
OnResume is like OnNavigatedTo but OnResume is called if this page is displayed as a modal while OnNavigatedTo is called if this page is displayed as a full page. Either OnResume or OnNavigatedTo is called to initialize data and get UI elements ready to be displayed. This is called just before Handle() and Layout() are called (in that order).