Module bookmarks

Index

Variables

Interfaces

Functions

Variables

MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: number

MAX_WRITE_OPERATIONS_PER_HOUR: number

onChanged: BookmarkChangedEvent

onChildrenReordered: BookmarkChildrenReordered

onCreated: BookmarkCreatedEvent

onImportBegan: BookmarkImportBeganEvent

onImportEnded: BookmarkImportEndedEvent

onRemoved: BookmarkRemovedEvent

Functions

create(bookmark: Object, callback?: (result: chrome.bookmarks.BookmarkTreeNode) => void)

Parameters

  • bookmark: Object
  • callback?: (result: chrome.bookmarks.BookmarkTreeNode) => void optional

get(id: string, callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void)

Parameters

  • id: string
  • callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void

get(idList: Array<string>, callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void)

Parameters

  • idList: Array<string>
  • callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void

getChildren(id: string, callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void)

Parameters

  • id: string
  • callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void

getRecent(numberOfItems: number, callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void)

Parameters

  • numberOfItems: number
  • callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void

getSubTree(id: string, callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void)

Parameters

  • id: string
  • callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void

getTree(callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void)

Parameters

  • callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void

move(id: string, destination: Object, callback?: (result: chrome.bookmarks.BookmarkTreeNode) => void)

Parameters

  • id: string
  • destination: Object
  • callback?: (result: chrome.bookmarks.BookmarkTreeNode) => void optional

remove(id: string, callback?: Function)

Parameters

  • id: string
  • callback?: Function optional

removeTree(id: string, callback?: Function)

Parameters

  • id: string
  • callback?: Function optional

search(query: string, callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void)

Parameters

  • query: string
  • callback: (results: chrome.bookmarks.BookmarkTreeNode[]) => void

update(id: string, changes: Object, callback?: (result: chrome.bookmarks.BookmarkTreeNode) => void)

Parameters

  • id: string
  • changes: Object
  • callback?: (result: chrome.bookmarks.BookmarkTreeNode) => void optional