get_components_by_bundle_id


Description:

[ CCode ( cname = "as_pool_get_components_by_bundle_id_gi" ) ]
[ Version ( since = "0.16.0" ) ]
public GenericArray<Component> get_components_by_bundle_id (BundleKind kind, string bundle_id, bool match_prefix)

Find components that are provided by a bundle with a specific ID by its prefix.

For example, given a AS_BUNDLE_KIND_FLATPAK and a bundle_id "org.kde.dolphin/", it will list all the components that bundle dolphin. If the bundle_id is "org.kde.dolphin/x86_64" it will give those with also the architecture.

This function fully transfers ownership of the returned container, to be used in GIR bindings.

Parameters:

this

An instance of Pool.

kind

The kind of the bundle we are looking for

bundle_id

The bundle ID to match, as specified in Bundle

match_prefix

true to match the ID by prefix, false to perform an absolute match.

Returns:

an array of Component objects.