### Virtual Method

# Gio SettingsBackend read

#### Declaration

    GVariant*
    read (
      GSettingsBackend* backend,
      const gchar* key,
      const GVariantType* expected_type,
      gboolean default_value
    )

#### Description

Virtual method to read a key’s value.

#### Parameters

`key`

  Type: `const gchar*`

  No description available.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`expected_type`

  Type: `GVariantType`

  No description available.

  The data is owned by the caller of the function.

`default_value`

  Type: `gboolean`

  No description available.

#### Return value

Type: `GVariant`

No description available.

The caller of the function takes ownership of the data, and is responsible for freeing it.