Snapd.Category

g GObject.Object GObject.Object Snapd.Category Snapd.Category GObject.Object->Snapd.Category

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_featured ()

get_name ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

featured

bool

r/w/co

True if this category is featured

name

str

r/w/co

The category name

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Category(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.CategoryClass

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

New in version 1.64.

Returns:

True if this snap is featured in this category.

Return type:

bool

Get if this snap is featured in this category.

New in version 1.64.

get_name()
Returns:

a name.

Return type:

str

Get the name of this category, e.g. “social”.

New in version 1.64.

Property Details

Snapd.Category.props.featured
Name:

featured

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

True if this category is featured

Snapd.Category.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The category name