Udostępnij za pośrednictwem


TvContract.RequestChannelBrowsable(Context, Int64) Method

Definition

Requests to make a channel browsable.

[Android.Runtime.Register("requestChannelBrowsable", "(Landroid/content/Context;J)V", "", ApiSince=26)]
public static void RequestChannelBrowsable (Android.Content.Context? context, long channelId);
[<Android.Runtime.Register("requestChannelBrowsable", "(Landroid/content/Context;J)V", "", ApiSince=26)>]
static member RequestChannelBrowsable : Android.Content.Context * int64 -> unit

Parameters

context
Context

The context for accessing content provider.

channelId
Int64

The channel ID to be browsable.

Attributes

Remarks

Requests to make a channel browsable.

Once called, the system will review the request and make the channel browsable based on its policy. The first request from a package is guaranteed to be approved. This is only relevant to channels with Channels#TYPE_PREVIEW type.

Java documentation for android.media.tv.TvContract.requestChannelBrowsable(android.content.Context, long).

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