Gcr.SystemPrompter.new
function new(mode: Gcr.SystemPrompterMode, prompt_type: GObject.Type): Gcr.SystemPrompter { // Gjs wrapper for gcr_system_prompter_new() }
Create a new system prompter service. This prompter won't do anything unless you connect to its signals and show appropriate prompts.
If prompt_type is zero, then the new-prompt signal must be handled and return a valid prompt object implementing the Gcr.Prompt interface.
If prompt_type is non-zero then the GLib.Type must implement the Gcr.Prompt interface.
- mode
the mode for the prompt
- prompt_type
the gobject type for prompts created by this prompter
- Returns
a new prompter service