Partager via


TvInputService.Session.OnUnblockContent(TvContentRating) Method

Definition

Requests to unblock the content according to the given rating.

[Android.Runtime.Register("onUnblockContent", "(Landroid/media/tv/TvContentRating;)V", "GetOnUnblockContent_Landroid_media_tv_TvContentRating_Handler")]
public virtual void OnUnblockContent (Android.Media.TV.TvContentRating? unblockedRating);
[<Android.Runtime.Register("onUnblockContent", "(Landroid/media/tv/TvContentRating;)V", "GetOnUnblockContent_Landroid_media_tv_TvContentRating_Handler")>]
abstract member OnUnblockContent : Android.Media.TV.TvContentRating -> unit
override this.OnUnblockContent : Android.Media.TV.TvContentRating -> unit

Parameters

unblockedRating
TvContentRating

An unblocked content rating

Attributes

Remarks

Requests to unblock the content according to the given rating.

The implementation should unblock the content. TV input service has responsibility to decide when/how the unblock expires while it can keep previously unblocked ratings in order not to ask a user to unblock whenever a content rating is changed. Therefore an unblocked rating can be valid for a channel, a program, or certain amount of time depending on the implementation.

Java documentation for android.media.tv.TvInputService.Session.onUnblockContent(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