added in version 26.1.0
belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1
belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1
ChannelLogoUtils
public
class
ChannelLogoUtils
extends Object
java.lang.Object | |
↳ | android.support.media.tv.ChannelLogoUtils |
A utility class for conveniently storing and loading channel logos.
Summary
Public constructors | |
---|---|
ChannelLogoUtils()
|
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 |
static
boolean
|
storeChannelLogo(Context context, long channelId, Uri logoUri)
Stores channel logo in the system content provider from the given URI. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Public constructors
Public methods
loadChannelLogo
added in version 26.1.0
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 | |
---|---|
context |
Context : the context used to access the system content provider |
channelId |
long : the ID of the channel whose logo is supposed to be loaded |
Returns | |
---|---|
Bitmap |
the requested channel logo in Bitmap , or null if not available. |
storeChannelLogo
added in version 26.1.0
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.
Parameters | |
---|---|
|