struct Adw::NavigationView::GetNextPageSignal

Overview

Emitted when a push shortcut or a gesture is triggered.

To support the push shortcuts and gestures, the application is expected to return the page to push in the handler.

This signal can be emitted multiple times for the gestures, for example when the gesture is cancelled by the user. As such, the application must not make any irreversible changes in the handler, such as removing the page from a forward stack.

Instead, it should be done in the NavigationView::#pushed handler.

Defined in:

lib/gi-crystal/src/auto/adw-1/navigation_view.cr

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source : GObject::Object, detail : Nil | String = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Adw::NavigationPage)) : GObject::SignalConnection #

def connect(handler : Proc(Adw::NavigationPage), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Adw::NavigationView, Adw::NavigationPage), *, after : Bool = false) : GObject::SignalConnection #

def emit : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name