Share via


TvInputManager.ActionQueryContentRatingSystems Field

Definition

Broadcast intent action used to query available content rating systems.

[Android.Runtime.Register("ACTION_QUERY_CONTENT_RATING_SYSTEMS")]
public const string ActionQueryContentRatingSystems;
[<Android.Runtime.Register("ACTION_QUERY_CONTENT_RATING_SYSTEMS")>]
val mutable ActionQueryContentRatingSystems : string

Field Value

Attributes

Remarks

Broadcast intent action used to query available content rating systems.

The TV input manager service locates available content rating systems by querying broadcast receivers that are registered for this action. An application can offer additional content rating systems to the user by declaring a suitable broadcast receiver in its manifest.

Here is an example broadcast receiver declaration that an application might include in its AndroidManifest.xml to advertise custom content rating systems. The meta-data specifies a resource that contains a description of each content rating system that is provided by the application.

{@literal
<receiver android:name=".TvInputReceiver">
<intent-filter>
<action android:name=
                            "android.media.tv.action.QUERY_CONTENT_RATING_SYSTEMS" />
</intent-filter>
<meta-data
                        android:name="android.media.tv.metadata.CONTENT_RATING_SYSTEMS"
                        android:resource="@xml/tv_content_rating_systems" />
</receiver>}

In the above example, the @xml/tv_content_rating_systems resource refers to an XML resource whose root element is &lt;rating-system-definitions&gt; that contains zero or more &lt;rating-system-definition&gt; elements. Each &lt;rating-system-definition&gt; element specifies the ratings, sub-ratings and rating orders of a particular content rating system.

Java documentation for android.media.tv.TvInputManager.ACTION_QUERY_CONTENT_RATING_SYSTEMS.

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.

Applies to

See also