Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IContentRatingLevel

interface IContentRatingLevel
Extends com.amazon.apmf.IStandard

Methods

getRatingsSystem()

string getRatingsSystem()

Returns

string the unique identifying key for a “ratings system”, an specific industry ratings standard.

getRating()

string getRating()

Returns

string the unique identifying key for a rating that is a valid rating within the ratings system returned by [#getRatingsSystem].

isLessOrEquallyRestrictiveThan()

bool isLessOrEquallyRestrictiveThan(IContentRatingLevel* other)
Compares two ratings levels to determine whether one is less-or-equally as restrictive as another. Note, this is a partial function over the domain of [IContentRatingLevel] objects; only rating levels of the same ratings system may be compared.

Example

Given a={us_mpaa, G} and b={us_mpaa, PG-13}:
  • a->isLessOrEquallyRestrictiveThan(b) => true
  • b->isLessOrEquallyRestrictiveThan(a) => false
  • a->isLessOrEquallyRestrictiveThan(a) => true
Given c={us_tv, TV-Y}:
  • a->isLessOrEquallyRestrictiveThan(c) => raises NoncomparableRatingsError
  • c->isLessOrEquallyRestrictiveThan(a) => raises NoncomparableRatingsError

Parameters

other
IContentRatingLevel* — Required the content rating level to compare with

Returns

bool true if this object is less restrictive or equally restrictive to other else false.

Throws


Last modified on October 29, 2026