次の方法で共有


TvContentRating.CreateRating(String, String, String, String[]) Method

Definition

Creates a TvContentRating object with predefined content rating strings.

[Android.Runtime.Register("createRating", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Landroid/media/tv/TvContentRating;", "")]
public static Android.Media.TV.TvContentRating? CreateRating (string? domain, string? ratingSystem, string? rating, params string[]? subRatings);
[<Android.Runtime.Register("createRating", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Landroid/media/tv/TvContentRating;", "")>]
static member CreateRating : string * string * string * string[] -> Android.Media.TV.TvContentRating

Parameters

domain
String

The domain string. For example, "com.android.tv".

ratingSystem
String

The rating system string. For example, "US_TV".

rating
String

The content rating string. For example, "US_TV_PG".

subRatings
String[]

The sub-rating strings. For example, "US_TV_D" and "US_TV_L".

Returns

A TvContentRating object.

Attributes

Remarks

Java documentation for android.media.tv.TvContentRating.createRating(java.lang.String, java.lang.String, java.lang.String, java.lang.String).

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