public final class BookmarkManager extends Manager
This manager facilitates the access to the private storage by providing convenient method for adding, retrieving or removing bookmarks.
This class is thread-safe.
Modifier and Type | Method and Description |
---|---|
AsyncResult<java.lang.Void> |
addBookmark(Bookmark bookmark)
Adds a bookmark.
|
AsyncResult<java.util.List<ChatRoomBookmark>> |
getChatRoomBookmarks()
Gets a sorted collection of chat room bookmarks.
|
AsyncResult<java.util.List<WebPageBookmark>> |
getWebPageBookmarks()
Gets a sorted collection of web page bookmarks.
|
AsyncResult<java.lang.Void> |
removeChatRoomBookmark(Jid chatRoom)
Removes a chat room bookmark.
|
AsyncResult<java.lang.Void> |
removeWebPageBookmark(java.net.URL webPage)
Removes a web page bookmark.
|
isEnabled, setEnabled
public final AsyncResult<java.util.List<ChatRoomBookmark>> getChatRoomBookmarks()
Gets a sorted collection of chat room bookmarks.
public final AsyncResult<java.util.List<WebPageBookmark>> getWebPageBookmarks()
Gets a sorted collection of web page bookmarks.
public final AsyncResult<java.lang.Void> addBookmark(Bookmark bookmark)
Adds a bookmark.
bookmark
- The bookmark.public final AsyncResult<java.lang.Void> removeChatRoomBookmark(Jid chatRoom)
Removes a chat room bookmark.
chatRoom
- The chat room.public final AsyncResult<java.lang.Void> removeWebPageBookmark(java.net.URL webPage)
Removes a web page bookmark.
webPage
- The web page.Copyright © 2014–2019 XMPP.rocks. All rights reserved.