RatingsRestrictionKit
Features
- Get Device's Movie Rating Restriction Setting (Raw Value or Text Value)
- Get the raw value of a supplied Movie Rating (currently supports US ratings ONLY)
- Determine if supplied Movie Rating is allowed by device restrictions (again, US ONLY)
Movie Ratings
Get Device's Movie Rating Restriction Setting
RatingsRestrictionKit.getDeviceMovieRestrictionRaw()
Returns Raw value of Movie Rating Restriction on Device (Int value 0-1000)
RatingsRestrictionKit.getDeviceMovieRestriction()
Returns value of Movie Rating Restriction on Device (String value unrestricted, nc17, r, pg13, pg, g, disallow)
Get Movie Rating Value
RatingsRestrictionKit.getMovieRatingValue(rating: "r") // 400
Returns raw value of supplied Movie Rating (Int value 0-1000)
Movie Rating is Allowed
RatingsRestrictionKit.movieRatingIsAllowed(rating: "r") // returns Bool
Returns true/false if supplied rating is allowed by device's movie restriction rating
Installation
RatingsRestrictionKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RatingsRestrictionKit'
Features Planned
- TV Show Ratings
- App Ratings
- Explicit Books Allowed
- Explicit Music Podcasts Allowed
Wish List (For Those That Wish To Contribute)
- Support for Countries outside of US