Gio.UnixCredentialsMessage.new_with_credentials

function new_with_credentials(credentials: Gio.Credentials): Gio.SocketControlMessage {
    // Gjs wrapper for g_unix_credentials_message_new_with_credentials()
}
  

Creates a new Gio.UnixCredentialsMessage holding credentials.

Since 2.26

credentials

A Gio.Credentials object.

Returns

a new Gio.UnixCredentialsMessage