AppStreamCompose.Compose
Description: Reference for AppStreamCompose.Compose

### Class

# AppStreamComposeCompose

since: 1.0

#### Description

    class AppStreamCompose.Compose : GObject.Object
    {
      /* No available fields */
    }

No description available.

Available since: 1.0

#### Hierarchy

None

#### Ancestors

- GObject

#### Constructors

###### asc_compose_new

Creates a new `AscCompose`.

since: 1.0

#### Instance methods

###### asc_compose_add_allowed_cid

Adds a component ID to the allowlist. If the list is not empty, only components in the list will be added to the metadata output.

since: 1.0

###### asc_compose_add_custom_allowed

Add a key to the allowlist that is used to filter custom tag values.

since: 1.0

###### asc_compose_add_flags

Add compose flags.

since: 1.0

###### asc_compose_add_unit

Add an `AscUnit` as data source for metadata processing.

since: 1.0

###### asc_compose_fetch_components

Get the results components extracted in the last data processing run.

since: 1.0

###### asc_compose_finalize_result

Perform final validation of generated data for the specified result container.

since: 1.0

###### asc_compose_finalize_results

Perform final validation of generated data. Calling this function is not necessary, unless the final check was explicitly disabled using the `ASC_COMPOSE_FLAG_NO_FINAL_CHECK` flag.

since: 1.0

###### asc_compose_get_cainfo

Get the CA file used to verify peers with, or `NULL` for default.

since: 1.0

###### asc_compose_get_data_result_dir

Get the data result directory.

since: 1.0

###### asc_compose_get_flags

Get the flags controlling compose behavior.

since: 1.0

###### asc_compose_get_format

Get the format type we are generating.

since: 1.0

###### asc_compose_get_hints_result_dir

Get hints report output directory.

since: 1.0

###### asc_compose_get_icon_policy

Get the policy for how icons should be distributed to any AppStream clients.

since: 1.0

###### asc_compose_get_icons_result_dir

Get the icon result directory.

since: 1.0

###### asc_compose_get_locale_unit

Get the unit we use for locale processing.

since: 1.0

###### asc_compose_get_max_screenshot_size

Get the maximum size a screenshot video or image can have. A size < 0 may be returned for no limit, setting a limit of 0 will disable screenshots.

since: 1.0

###### asc_compose_get_media_baseurl

Get the media base URL to be used for the generated data, or `NULL` if no media is cached.

since: 1.0

###### asc_compose_get_media_result_dir

Get the media result directory, that can be served on a webserver.

since: 1.0

###### asc_compose_get_origin

Get the metadata origin field.

since: 1.0

###### asc_compose_get_prefix

Get the directory prefix used for processing.

since: 1.0

###### asc_compose_get_results

Get the results of the last processing run.

since: 1.0

###### asc_compose_has_errors

Check if the last run generated any errors (which will cause metadata to be ignored).

since: 1.0

###### asc_compose_remove_custom_allowed

Remove a key from the allowlist used to filter the `<custom/>` tag entries.

since: 1.0

###### asc_compose_remove_flags

Remove compose flags.

since: 1.0

###### asc_compose_reset

Reset the results, units and run-specific settings so the instance can be reused for another metadata generation run.

since: 1.0

###### asc_compose_run

Process the registered units and generate catalog metadata from found components.

since: 1.0

###### asc_compose_set_cainfo

Set a CA file holding one or more certificates to verify peers with for download operations performed by this `AscCompose`.

since: 1.0

###### asc_compose_set_check_metadata_early_func

Set an custom callback to be run when most of the metadata has been loaded, but no expensive operations (like downloads or icon rendering) have been done yet. This can be used to ignore unwanted components early on.

since: 1.0

###### asc_compose_set_data_result_dir

Set an output location where generated metadata should be saved. If this is set to `NULL`, no metadata will be saved.

since: 1.0

###### asc_compose_set_desktop_entry_l10n_func

Set a custom desktop-entry field localization functions to be run for specialized desktop-entry localization schemes such as used in Ubuntu.

since: 1.0

###### asc_compose_set_flags

Set compose flags bitfield that controls the enabled features for this `AscCompose`.

since: 1.0

###### asc_compose_set_format

Set the format kind of the catalog metadata that we should generate.

since: 1.0

###### asc_compose_set_hints_result_dir

Set an output location for HTML reports of issues generated during a compose run.

since: 1.0

###### asc_compose_set_icon_policy

Set an icon policy object, overriding the existing one.

since: 1.0

###### asc_compose_set_icons_result_dir

Set an output location where plain icons for the processed metadata are stored.

since: 1.0

###### asc_compose_set_locale_unit

Set a specific unit that is used for fetching locale information. This may be useful in case a special language pack layout is used, but is generally not necessary to be set explicitly, as locale will be found in the unit where the metadata is by default.

since: 1.0

###### asc_compose_set_max_screenshot_size

Set the maximum size a screenshot video or image can have. A size < 0 may be set to allow unlimited sizes, setting a limit of 0 will disable screenshot caching entirely.

since: 1.0

###### asc_compose_set_media_baseurl

Set the media base URL for the generated metadata. Can be `NULL` if no media should be cached and the original URLs should be kept.

since: 1.0

###### asc_compose_set_media_result_dir

Set an output location to store media (screenshots, icons, …) that will be served on a webserver via the URL set as media baseurl.

since: 1.0

###### asc_compose_set_origin

Set the metadata origin field (e.g. “debian” or “flathub”)

since: 1.0

###### asc_compose_set_prefix

Set the directory prefix the to-be-processed units are using.

since: 1.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

#### Class structure

    struct AppStreamComposeComposeClass {
      GObjectClass parent_class;
      void (* _as_reserved1) (
    void
      );
      void (* _as_reserved2) (
    void
      );
      void (* _as_reserved3) (
    void
      );
      void (* _as_reserved4) (
    void
      );

    }

No description available.

###### Class members

`parent_class: GObjectClass`
  No description available.
`_as_reserved1: void (* _as_reserved1) ( void )`
  No description available.
`_as_reserved2: void (* _as_reserved2) ( void )`
  No description available.
`_as_reserved3: void (* _as_reserved3) ( void )`
  No description available.
`_as_reserved4: void (* _as_reserved4) ( void )`
  No description available.