public class

BookmarkManager

extends Object
java.lang.Object
   ↳ com.vidinoti.android.vdarsdk.bookmark.BookmarkManager

Class Overview

Class handling the bookmarks. The contexts can be added to a bookmark list. For enabling the bookmarks, the feature must be enabled (see setBookmarkSupport(boolean)). The bookmarks are stored on a preference file.

Summary

Public Constructors
BookmarkManager()
Public Methods
static void addBookmark(String contextId)
Adds a context to the list of bookmarks
static List<String> getBookmarks()
Returns the list of contexts that have been added to the bookmark list.
static boolean isBookmarked(String contextId)
Checks if the context is part of the bookmarked contents
static void removeBookmark(String contextId)
Removes the context from the list of bookmarks
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BookmarkManager ()

Public Methods

public static void addBookmark (String contextId)

Adds a context to the list of bookmarks

Parameters
contextId the contextId of the context

public static List<String> getBookmarks ()

Returns the list of contexts that have been added to the bookmark list.

Returns
  • the list of contextId that have been bookmarked.

public static boolean isBookmarked (String contextId)

Checks if the context is part of the bookmarked contents

Parameters
contextId the contextId of the context
Returns
  • true if the context is bookmarked, false otherwise

public static void removeBookmark (String contextId)

Removes the context from the list of bookmarks

Parameters
contextId the contextId of the context