Interface

Gcr-4GcrPromptInterface

Interface for implementing Prompt. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_prompt_close(): void;
    vfunc_prompt_confirm_async(
        cancellable?: Gio.Cancellable,
        callback?: AsyncReadyCallback<Gcr.Prompt.Interface>,
    ): void;
    vfunc_prompt_confirm_finish(result: Gio.AsyncResult): PromptReply;
    vfunc_prompt_password_async(
        cancellable?: Gio.Cancellable,
        callback?: AsyncReadyCallback<Gcr.Prompt.Interface>,
    ): void;
    vfunc_prompt_password_finish(result: Gio.AsyncResult): string;
}

Hierarchy (View Summary)

Index

Methods

  • Complete an operation to prompt for a password.

    A password will be returned if the user enters a password successfully. The returned password is valid until the next time a method is called to display another prompt.

    null will be returned if the user cancels or if an error occurs. Check the error argument to tell the difference.

    Parameters

    Returns string