ChannelLogoUtils

public class ChannelLogoUtils
extends Object

java.lang.Object
   ↳ androidx.tvprovider.media.tv.ChannelLogoUtils


A utility class for conveniently storing and loading channel logos.

Summary

Public constructors

ChannelLogoUtils()

This constructor is deprecated. This type should not be instantiated as it contains only static methods.

Public methods

static Bitmap loadChannelLogo(Context context, long channelId)

A convenient helper method to get the channel logo associated to the given channel ID from the system content provider.

static boolean storeChannelLogo(Context context, long channelId, Bitmap logo)

Stores the given channel logo Bitmap in the system content provider and associate it with the given channel ID.

static boolean storeChannelLogo(Context context, long channelId, Uri logoUri)

Stores channel logo in the system content provider from the given URI.

Inherited methods

Public constructors

ChannelLogoUtils

public ChannelLogoUtils ()

This constructor is deprecated.
This type should not be instantiated as it contains only static methods.

Public methods

loadChannelLogo

public static Bitmap loadChannelLogo (Context context, 
                long channelId)

A convenient helper method to get the channel logo associated to the given channel ID from the system content provider.

Parameters