Interface

Polkit-1.0PolkitSubjectInterface

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

interface Interface {
    vfunc_equal(b: Polkit.Subject): boolean;
    vfunc_exists(
        cancellable: Gio.Cancellable | null,
        callback: AsyncReadyCallback<Polkit.Subject.Interface> | null,
    ): void;
    vfunc_exists_finish(res: Gio.AsyncResult): boolean;
    vfunc_exists_sync(cancellable: Gio.Cancellable | null): boolean;
    vfunc_hash(): number;
    vfunc_to_string(): string;
}

Hierarchy (View Summary)

Index

Methods

  • Checks if subject exists.

    This is a synchronous blocking call - the calling thread is blocked until a reply is received. See polkit_subject_exists() for the asynchronous version.

    Parameters

    Returns boolean

  • Serializes subject to a string that can be used in polkit_subject_from_string().

    Returns string