bookmarks.getRecent()

Retrieves recently added bookmarks.

This method takes two arguments:

  • an integer argument numberOfItems representing the number of bookmarks to retrieve
  • a callback.

It retrieves the most recently added bookmarks, up to numberOfItems, and passes them into the callback as an array of BookmarkTreeNode objects.

Syntax

browser.bookmarks.getRecent(
  numberOfItems,          // integer
  function(results) {...} // function
)

Parameters

numberOfItems
integer. The maximum number of items to return.
callback
function. The function is passed the following arguments:
results
array of bookmarks.BookmarkTreeNode.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?47.0Yes33
Firefox
Basic supportNo

Examples

Acknowledgements

This API is based on Chromium's chrome.bookmarks API. This documentation is derived from bookmarks.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,