AbstractParentalRatingLocal
On this page
- AbstractParentalRatingLocal ⇐
Class
- AbstractParentalRatingLocal()
- __parentalRatings :
Array.<ParentalRating>
- getParentalRatingsSettingsList() ⇒
Array.<ParentalRating>
- getUnifiedParentalRating(nativeRating) ⇒
Number
- getNativeParentalRating(unifiedRating) ⇒
String
- _getParentalRatingsSettingsList() ⇒
Array.<ParentalRating>
- _getUnifiedParentalRating(nativeRating) ⇒
Number
- _getNativeParentalRating(unifiedRating) ⇒
String
AbstractParentalRatingLocal ⇐ Class
Kind: static abstract class
Extends: Class
See: https://en.wikipedia.org/wiki/Motion_picture_content_rating_system
- .AbstractParentalRatingLocal ⇐
Class
- new AbstractParentalRatingLocal()
- .__parentalRatings :
Array.<ParentalRating>
- .getParentalRatingsSettingsList() ⇒
Array.<ParentalRating>
- .getUnifiedParentalRating(nativeRating) ⇒
Number
- .getNativeParentalRating(unifiedRating) ⇒
String
- ._getParentalRatingsSettingsList() ⇒
Array.<ParentalRating>
- ._getUnifiedParentalRating(nativeRating) ⇒
Number
- ._getNativeParentalRating(unifiedRating) ⇒
String
AbstractParentalRatingLocal()
Abstract helper to localise parental rating of a content. Unified parental rating is a set of values (ages) between 0 and 21 evaluating the content and reporting the suitability of contents for children, teenagers, or adults.
__parentalRatings : Array.<ParentalRating>
Kind: static property of AbstractParentalRatingLocal
getParentalRatingsSettingsList() ⇒ Array.<ParentalRating>
Returns the choice list of parental ratings in the Settings, minus the isInactive ones, ordered by value.
Kind: static method of AbstractParentalRatingLocal
Returns: Array.<ParentalRating>
- The choice list of native ratings.
getUnifiedParentalRating(nativeRating) ⇒ Number
Allows to convert a localised rating to the unified one
Kind: static method of AbstractParentalRatingLocal
Returns: Number
- The corresponding unified rating
Param | Type | Description |
---|---|---|
nativeRating | Number | String | Native rating to convert |
getNativeParentalRating(unifiedRating) ⇒ String
Allows to convert a unified rating to the native one
Kind: static method of AbstractParentalRatingLocal
Returns: String
- The corresponding native rating
Param | Type | Description |
---|---|---|
unifiedRating | Number | Unified rating to convert |
_getParentalRatingsSettingsList() ⇒ Array.<ParentalRating>
Returns the choice list of native parental ratings, minus the isInactive ones, ordered by value.
Kind: static abstract method of AbstractParentalRatingLocal
Returns: Array.<ParentalRating>
- The choice list of native ratings.
_getUnifiedParentalRating(nativeRating) ⇒ Number
Allows to convert a localised rating to the unified one
Kind: static abstract method of AbstractParentalRatingLocal
Returns: Number
- The corresponding unified rating
Param | Type | Description |
---|---|---|
nativeRating | Number | String | Native rating to convert |
_getNativeParentalRating(unifiedRating) ⇒ String
Allows to convert a unified rating to the native one
Kind: static abstract method of AbstractParentalRatingLocal
Returns: String
- The corresponding native rating
Param | Type | Description |
---|---|---|
unifiedRating | Number | Unified rating to convert |