AppStream.ContentRatingSystem – appstream Reference Manual
ContentRatingSystem
Description:
[
CCode
( cprefix =
"AS_CONTENT_RATING_SYSTEM_"
, type_id =
"as_content_rating_system_get_type ()"
) ]
[
Version
( since =
"0.12.12"
) ]
public
enum
ContentRatingSystem
A content rating system for a particular territory.
Namespace:
AppStream
Package:
appstream
Content:
Enum values:
ACB
-
ACB
CERO
-
CERO
DJCTQ
-
DJCTQ
ESRA
-
ESRA
ESRB
-
ESRB
GRAC
-
GRAC
GSRR
-
GSRR
IARC
-
IARC
INCAA
-
INCAA
KAVI
-
KAVI
MDA
-
MDA
OFLCNZ
-
OFLCNZ
PEGI
-
PEGI
RUSSIA
-
Russia
UNKNOWN
-
Unknown ratings system
USK
-
USK
Static methods:
public
static
ContentRatingSystem
from_locale
(
string
locale)
Determine the most appropriate
ContentRatingSystem
for the given
locale
.
Methods:
public
string
?
format_age
(
uint
age)
Format
age
as a human-readable string in the given rating
system
.
public
uint
[]
get_csm_ages
()
Get the CSM ages corresponding to the entries returned by
get_formatted_ages
for this
system
.
public
string
[]
get_formatted_ages
()
Get an array of all the possible return values of
format_age
for the given
system
.
public
unowned
string
?
to_string
()
Get a human-readable string to identify
system
.
2022 vala-language.org