as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Represents the rating level within the ratings scale for a specific ratings system.

Properties

ratingsSystem

readonly ratingsSystem: string
Returns the unique identifying key for a “ratings system”, an specific industry ratings standard.
  • point to documentation for supported ratings systems

rating

readonly rating: string
Returns the unique identifying key for a rating that is a valid rating within the ratings system returned by ratingsSystem.
  • point to documentation for ratings scales of supported ratings systems

Methods

isLessOrEquallyRestrictiveThan()

isLessOrEquallyRestrictiveThan(other: IContentRatingLevel): Promise<boolean>
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.

Parameters

other
IContentRatingLevel

Throws

  • NoncomparableRatingsError when attempting to compare ratings levels from different ratings systems.

Returns

Promise<boolean> true if this object is less restrictive or equally restrictive to other else false.

Examples

最后修改于 2026年8月25日