TvContentRating.Contains(TvContentRating) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true
if this rating has the same main rating as the specified rating and when
this rating's sub-ratings contain the other's.
[Android.Runtime.Register("contains", "(Landroid/media/tv/TvContentRating;)Z", "", ApiSince=24)]
public bool Contains (Android.Media.TV.TvContentRating rating);
[<Android.Runtime.Register("contains", "(Landroid/media/tv/TvContentRating;)Z", "", ApiSince=24)>]
member this.Contains : Android.Media.TV.TvContentRating -> bool
Parameters
- rating
- TvContentRating
The TvContentRating
to check.
Returns
true
if this object contains rating
, false
otherwise.
- Attributes
Remarks
Returns true
if this rating has the same main rating as the specified rating and when this rating's sub-ratings contain the other's.
For example, a TvContentRating
object that represents TV-PG with S(Sexual content) and V(Violence) contains TV-PG, TV-PG/S, TV-PG/V and itself.
Java documentation for android.media.tv.TvContentRating.contains(android.media.tv.TvContentRating)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.