Partager via


TvView.TvInputCallback.OnContentBlocked(String, TvContentRating) Method

Definition

This is called when the current program content turns out to be not allowed to watch since its content rating is blocked by parental controls.

[Android.Runtime.Register("onContentBlocked", "(Ljava/lang/String;Landroid/media/tv/TvContentRating;)V", "GetOnContentBlocked_Ljava_lang_String_Landroid_media_tv_TvContentRating_Handler")]
public virtual void OnContentBlocked (string? inputId, Android.Media.TV.TvContentRating? rating);
[<Android.Runtime.Register("onContentBlocked", "(Ljava/lang/String;Landroid/media/tv/TvContentRating;)V", "GetOnContentBlocked_Ljava_lang_String_Landroid_media_tv_TvContentRating_Handler")>]
abstract member OnContentBlocked : string * Android.Media.TV.TvContentRating -> unit
override this.OnContentBlocked : string * Android.Media.TV.TvContentRating -> unit

Parameters

inputId
String

The ID of the TV input bound to this view.

rating
TvContentRating

The content rating of the blocked program.

Attributes

Remarks

This is called when the current program content turns out to be not allowed to watch since its content rating is blocked by parental controls.

Java documentation for android.media.tv.TvView.TvInputCallback.onContentBlocked(java.lang.String, 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.

Applies to