public class Catalog extends EventDispatcher
Modifier and Type | Class and Description |
---|---|
static class |
Catalog.ResultCode |
_handle, _myHandle
addEventListener, removeEventListener
public long getNativeHandle()
getNativeHandle
in interface IEventDispatcher
getNativeHandle
in interface IObject
getNativeHandle
in class EventDispatcher
public static Catalog instance()
protected void finalize() throws java.lang.Throwable
finalize
in class EventDispatcher
java.lang.Throwable
public int cancelInstall(java.lang.String file)
public Catalog.ResultCode installChannel(ChannelEntity channel)
public ChannelEntity getChannel(long channelId, int childDepth, int packageDepth, int videoDepth)
channelId
- Id of the channel you want to query.childDepth
- Depth of child channels to sub query.packageDepth
- Depth of packages to load for child channels (should be less than or equal to childDepth)videoDepth
- Depth of videos to load for child channels (should be less than or equal to childDepth)public Catalog.ResultCode installPackage(java.lang.String file, PackageEntity pkg)
public Catalog.ResultCode deletePackage(long packageId)
public Catalog.ResultCode deletePackagesInChannel(ChannelEntity channel)
public boolean isPackageInstalled(long packageId)
public PackageEntity getPackage(long packageId)
public java.util.Vector<ChannelEntity> getPackageChannels(long packageId, boolean includeParentChannels)
public java.util.Vector<PackageEntity> getPackages()
public java.util.Vector<PackageEntity> getChannelPackages(long channelId)
public long getInstalledPackageCount()
public Catalog.ResultCode installVideo(java.lang.String file, VideoEntity video)
public Catalog.ResultCode deleteVideo(long videoId)
public Catalog.ResultCode deleteVideosInChannel(ChannelEntity channel)
public boolean isVideoInstalled(long videoId)
public VideoEntity getVideo(long videoId)
public java.util.Vector<ChannelEntity> getVideoChannels(long videoId, boolean includeParentChannels)
public java.util.Vector<VideoEntity> getVideos()
public java.util.Vector<VideoEntity> getChannelVideos(long channelId)
public long getInstalledVideoCount()