## flatpak-bundle-ref flatpak-bundle-ref |

## Functions

FlatpakBundleRef * | flatpak_bundle_ref_new ()
GFile * | flatpak_bundle_ref_get_file ()
GBytes * | flatpak_bundle_ref_get_metadata ()
GBytes * | flatpak_bundle_ref_get_appstream ()
GBytes * | flatpak_bundle_ref_get_icon ()
char * | flatpak_bundle_ref_get_origin ()
guint64 | flatpak_bundle_ref_get_installed_size ()

## Properties

GFile * | file | Read / Write

## Types and Values

struct | FlatpakBundleRef

## Object Hierarchy

        GObject
        ╰── FlatpakRef
            ╰── FlatpakBundleRef

## Description

## Functions

### flatpak_bundle_ref_new ()

    FlatpakBundleRef *
    flatpak_bundle_ref_new (GFile *file,
                            GError **error);

Creates a new bundle ref for the given file.

#### Parameters

file | a GFile |
error | return location for an error. | [allow-none]

#### Returns

a new bundle ref.

### flatpak_bundle_ref_get_file ()

    GFile *
    flatpak_bundle_ref_get_file (FlatpakBundleRef *self);

Get the file this bundle is stored in.

#### Parameters

self | a FlatpakBundleRef |

#### Returns

(transfer full) : an GFile

### flatpak_bundle_ref_get_metadata ()

    GBytes *
    flatpak_bundle_ref_get_metadata (FlatpakBundleRef *self);

Get the metadata for the app/runtime

#### Parameters

self | a FlatpakBundleRef |

#### Returns

(transfer full) : an GBytes with the metadata contents, or `NULL`

### flatpak_bundle_ref_get_appstream ()

    GBytes *
    flatpak_bundle_ref_get_appstream (FlatpakBundleRef *self);

Get the compressed appstream for the app/runtime

#### Parameters

self | a FlatpakBundleRef |

#### Returns

(transfer full) : an GBytes with the appstream contents, or `NULL`

### flatpak_bundle_ref_get_icon ()

    GBytes *
    flatpak_bundle_ref_get_icon (FlatpakBundleRef *self,
                                 int size);

Get the icon png data for the app/runtime

#### Parameters

self | a FlatpakBundleRef |
size | 64 or 128 |

#### Returns

(transfer full) : an GBytes with png contents

### flatpak_bundle_ref_get_origin ()

    char *
    flatpak_bundle_ref_get_origin (FlatpakBundleRef *self);

Get the origin url stored in the bundle

#### Parameters

self | a FlatpakBundleRef |

#### Returns

(transfer full) : an url string, or `NULL`

### flatpak_bundle_ref_get_installed_size ()

    guint64
    flatpak_bundle_ref_get_installed_size (FlatpakBundleRef *self);

Returns the installed size for the bundle.

#### Parameters

self | a FlatpakBundleRef |

#### Returns

the installed size

## Types and Values

### struct FlatpakBundleRef

    struct FlatpakBundleRef;

## Property Details

### The `“file”` property

      “file”                     GFile *

Flags: Read / Write