SnapdCategory: snapd-glib Reference Manual

## SnapdCategory SnapdCategory — Snap category metadata |

## Functions

gboolean | snapd_category_get_featured ()
const gchar * | snapd_category_get_name ()

## Properties

gboolean | featured | Read / Write / Construct Only
char * | name | Read / Write / Construct Only

## Types and Values

| SnapdCategory

## Object Hierarchy

        GObject
        ╰── SnapdCategory

## Includes

    #include <snapd-glib/snapd-glib.h>

## Description

A SnapdCategory contains the metadata for a category membership as returned using `snapd_snap_get_categories()`.

## Functions

### snapd_category_get_featured ()

    gboolean
    snapd_category_get_featured (SnapdCategory *category);

Get if this snap is featured in this category.

#### Parameters

category | a SnapdCategory. |

#### Returns

`TRUE` if this snap is featured in this category.

Since: 1.64

### snapd_category_get_name ()

    const gchar *
    snapd_category_get_name (SnapdCategory *category);

Get the name of this category, e.g. "social".

#### Parameters

category | a SnapdCategory. |

#### Returns

a name.

Since: 1.64

## Types and Values

### SnapdCategory

    typedef struct _SnapdCategory SnapdCategory;

SnapdCategory is an opaque data structure and can only be accessed using the provided functions.

Since: 1.64

## Property Details

### The `“featured”` property

      “featured”                 gboolean

TRUE if this category is featured.

Owner: SnapdCategory

Flags: Read / Write / Construct Only

Default value: FALSE

### The `“name”` property

      “name”                     char *

The category name.

Owner: SnapdCategory

Flags: Read / Write / Construct Only

Default value: NULL