File

bookmarks/bookmarks.service.ts

Index

Properties
Methods

Constructor

constructor(translateService: TranslateService, userPreferencesService: UserPreferencesService, options: OptionsService)
Parameters :
Name Type Optional
translateService TranslateService No
userPreferencesService UserPreferencesService No
options OptionsService No

Methods

convertBookmarkLinkToObject
convertBookmarkLinkToObject(title: string, url: string, icon: string)
Parameters :
Name Type Optional
title string No
url string No
icon string No
Returns : Bookmark
extractIconName
extractIconName(input: string)
Parameters :
Name Type Optional
input string No
Returns : string | null
generateRandomID
generateRandomID()
Returns : any
Async getBookmarks
getBookmarks()
getCurrentActiveNodeIcon
getCurrentActiveNodeIcon(document: Document)
Parameters :
Name Type Optional
document Document No
Returns : string
Async updateBookmarksInStorage
updateBookmarksInStorage(newBookmarks: Bookmark[])
Parameters :
Name Type Optional
newBookmarks Bookmark[] No
Returns : Promise<void>

Properties

updatedBookmarks
Type : Bookmark[]
Readonly USER_PREFERENCES_BOOKMARKS_KEY
Type : string
Default value : 'bookmarks'

results matching ""

    No results matching ""