Snapd.Snap
Description: Reference for Snapd.Snap

### Class

# SnapdSnap

since: 1.0

#### Description [src]

    final class Snapd.Snap : GObject.Object
    {
      /* No available fields */
    }

`SnapdSnap` contains Snap metadata.

Available since: 1.0

#### Hierarchy

#### Ancestors

- GObject

#### Instance methods

###### snapd_snap_get_apps

Get the apps this snap provides.

since: 1.0

###### snapd_snap_get_base

Get the base snap this snap uses.

since: 1.45

###### snapd_snap_get_broken

Get the reason this snap is broken.

since: 1.25

###### snapd_snap_get_categories

Gets the categories this snap belongs to.

since: 1.64

###### snapd_snap_get_channel

Get the channel this snap is from, e.g. “stable”.

since: 1.0

###### snapd_snap_get_channels

Gets the available channels for this snap.

since: 1.22

###### snapd_snap_get_common_ids

Get common IDs associated with this snap.

since: 1.41

###### snapd_snap_get_confinement

Get the confinement this snap is using, e.g. `SNAPD_CONFINEMENT_STRICT`.

since: 1.0

###### snapd_snap_get_contact

Get the means of contacting the snap developer, e.g. “mailto:developer@example.com”.

since: 1.13

###### snapd_snap_get_description

Get a multi-line description of this snap. The description is formatted using a subset of Markdown. To parse this use a `SnapdMarkdownParser`.

since: 1.0

###### snapd_snap_get_developer

Get the developer who created this snap.

deprecated: 1.42 since: 1.0

###### snapd_snap_get_devmode

Get if this snap is running in developer mode.

since: 1.0

###### snapd_snap_get_download_size

Get the download size of this snap or 0 if unknown.

since: 1.0

###### snapd_snap_get_hold

Get the date this snap will re-enable automatic refreshing or `NULL` if no hold is present.

since: 1.64

###### snapd_snap_get_icon

Get the icon for this Snap, either a URL or an absolute path to retrieve it from snapd directly.

since: 1.0

###### snapd_snap_get_id

Gets the unique ID for this snap.

since: 1.0

###### snapd_snap_get_install_date

Get the date this snap was installed or `NULL` if unknown.

since: 1.0

###### snapd_snap_get_installed_size

Get the installed size of this snap or 0 if unknown.

since: 1.0

###### snapd_snap_get_jailmode

Get if this snap is running in enforced confinement (jail) mode.

since: 1.8

###### snapd_snap_get_license

Gets the SPDX license expression for this snap, e.g. “GPL-3.0+”.

since: 1.19

###### snapd_snap_get_links

Get links that are associated with this snap.

since: 1.69

###### snapd_snap_get_media

Get media that is associated with this snap.

since: 1.45

###### snapd_snap_get_mounted_from

Gets the path this snap is mounted from, which is a .snap file for installed snaps and a directory for snaps in try mode.

since: 1.45

###### snapd_snap_get_name

Get the name of this snap. This is used to reference this snap, e.g. for installing / removing.

since: 1.0

###### snapd_snap_get_prices

Get the prices that this snap can be purchased at.

since: 1.0

###### snapd_snap_get_private

Get if this snap is only available to the developer.

since: 1.0

###### snapd_snap_get_proceed_time

Returns the date and time after which a refresh is forced for this running snap in the next auto-refresh. By substracting the current date and time it’s possible to know how many time remains before the snap is forced to be refreshed.

since: 1.65

###### snapd_snap_get_publisher_display_name

Get the display name of the publisher who created this snap.

since: 1.42

###### snapd_snap_get_publisher_id

Get the ID of the publisher who created this snap.

since: 1.42

###### snapd_snap_get_publisher_username

Get the username of the publisher who created this snap.

since: 1.42

###### snapd_snap_get_publisher_validation

Get the validation for the snap publisher, e.g. `SNAPD_PUBLISHER_VALIDATION_VERIFIED`.

since: 1.42

###### snapd_snap_get_revision

Get the revision for this snap. The format of the string is undefined. See also snapd_snap_get_version().

since: 1.0

###### snapd_snap_get_screenshots

Get the screenshots that are available for this snap.

deprecated: 1.45 since: 1.0

###### snapd_snap_get_snap_type

Get the type of snap, e.g. `SNAPD_SNAP_TYPE_APP`.

since: 1.0

###### snapd_snap_get_status

Get the current status of this snap, e.g. SNAPD_SNAP_STATUS_INSTALLED.

since: 1.0

###### snapd_snap_get_store_url

Get a URL to the web snap store, e.g. “https://snapcraft.io/example”.

since: 1.60

###### snapd_snap_get_summary

Get a single line summary for this snap, e.g. “Best app ever!”.

since: 1.0

###### snapd_snap_get_title

Get the title for this snap. If not available use the snap name instead.

since: 1.14

###### snapd_snap_get_tracking_channel

Get the channel that updates will be installed from, e.g. “stable”.

since: 1.7

###### snapd_snap_get_tracks

Get the tracks that are available.

since: 1.22

###### snapd_snap_get_trymode

Get if this snap is running in try mode (installed locally and able to be directly modified).

since: 1.0

###### snapd_snap_get_version

Get the version for this snap. The format of the string is undefined. See also snapd_snap_get_revision().

since: 1.0

###### snapd_snap_get_website

Get the website of the snap developer, e.g. “http://example.com”.

since: 1.50

###### snapd_snap_match_channel

Finds the available channel that best matches the given name. If none matches `NULL` is returned.

since: 1.22

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

Please see GObject for a full list of methods.

#### Properties

###### Snapd.Snap:apps

No description available.

###### Snapd.Snap:base

No description available.

###### Snapd.Snap:broken

No description available.

###### Snapd.Snap:categories

No description available.

###### Snapd.Snap:channel

No description available.

###### Snapd.Snap:channels

No description available.

###### Snapd.Snap:common-ids

No description available.

###### Snapd.Snap:confinement

No description available.

###### Snapd.Snap:contact

No description available.

###### Snapd.Snap:description

No description available.

###### Snapd.Snap:developer

No description available.

###### Snapd.Snap:devmode

No description available.

###### Snapd.Snap:download-size

No description available.

###### Snapd.Snap:hold

No description available.

###### Snapd.Snap:icon

No description available.

###### Snapd.Snap:id

No description available.

###### Snapd.Snap:install-date

No description available.

###### Snapd.Snap:installed-size

No description available.

###### Snapd.Snap:jailmode

No description available.

###### Snapd.Snap:license

No description available.

###### Snapd.Snap:links

No description available.

###### Snapd.Snap:media

No description available.

###### Snapd.Snap:mounted-from

No description available.

###### Snapd.Snap:name

No description available.

###### Snapd.Snap:prices

No description available.

###### Snapd.Snap:private

No description available.

###### Snapd.Snap:proceed-time

No description available.

###### Snapd.Snap:publisher-display-name

No description available.

###### Snapd.Snap:publisher-id

No description available.

###### Snapd.Snap:publisher-username

No description available.

###### Snapd.Snap:publisher-validation

No description available.

###### Snapd.Snap:revision

No description available.

###### Snapd.Snap:screenshots

No description available.

###### Snapd.Snap:snap-type

No description available.

###### Snapd.Snap:status

No description available.

###### Snapd.Snap:store-url

No description available.

###### Snapd.Snap:summary

No description available.

###### Snapd.Snap:title

No description available.

###### Snapd.Snap:tracking-channel

No description available.

###### Snapd.Snap:tracks

No description available.

###### Snapd.Snap:trymode

No description available.

###### Snapd.Snap:version

No description available.

###### Snapd.Snap:website

No description available.

#### 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.

#### Class structure

    struct SnapdSnapClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.