Gio.Credentials.prototype.set_native

function set_native(native_type: Gio.CredentialsType, native: void): void {
    // Gjs wrapper for g_credentials_set_native()
}
  

Copies the native credentials of type native_type from native into credentials.

It is a programming error (which will cause an warning to be logged) to use this method if there is no Gio.Credentials support for the OS or if native_type isn't supported by the OS.

Since 2.26

native_type

The type of native credentials to set.

native

A pointer to native credentials.