Top | ![]() |
![]() |
![]() |
![]() |
A SnapdPrice represents an amount of money required to purchase a snap.
Prices can be queried using snapd_snap_get_prices()
and are used in
snapd_client_buy_sync()
.
gdouble
snapd_price_get_amount (SnapdPrice *price
);
Get the currency amount for this price, e.g. 0.99.
Return: a currency amount.
Since: 1.0
const gchar *
snapd_price_get_currency (SnapdPrice *price
);
Get the currency this price is in, e.g. "NZD".
Since: 1.0
typedef struct _SnapdPrice SnapdPrice;
SnapdPrice contains pricing information.
Since: 1.0