ContentRating
Object Hierarchy:
Description:
Namespace: AppStream
Package: appstream
Content:
Static methods:
- public static ContentRatingValue attribute_from_csm_age (string id, uint age)
Gets the highest ContentRatingValue which is allowed to be seen by the given Common Sense Media
age
for the given subsectionid
. - public static unowned string attribute_get_description (string id, ContentRatingValue value)
Get a human-readable description of what content would be expected to require the content rating attribute given by
id
andvalue
. - public static uint attribute_to_csm_age (string id, ContentRatingValue value)
Gets the Common Sense Media approved age for a specific rating level.
- public static (unowned string)[] get_all_rating_ids ()
Returns a list of all the valid OARS content rating attribute IDs as could be passed to add_attribute or attribute_to_csm_age.
Creation methods:
- public ContentRating ()
Creates a new ContentRating.
Methods:
- public void add_attribute (string id, ContentRatingValue value)
Adds an attribute value to the content rating.
- public unowned string get_kind ()
Gets the content_rating kind.
- public uint get_minimum_age ()
Gets the lowest Common Sense Media approved age for the content_rating block.
- public (unowned string)[] get_rating_ids ()
Gets the set of ratings IDs which are present in this this.
- public ContentRatingValue get_value (string id)
Gets the value of a content rating key.
- public void set_kind (string kind)
Sets the content rating kind.
- public void set_value (string id, ContentRatingValue value)
Sets the value of a content rating key.
Inherited Members:
All known members inherited from class GLib.Object