File

bookmarks/bookmarks.service.ts

Index

Properties
Methods

Constructor

constructor(navigatorService: NavigatorService, options: OptionsService, router: Router, translateService: TranslateService, userPreferencesService: UserPreferencesService)
Parameters :
Name Type Optional
navigatorService NavigatorService No
options OptionsService No
router Router No
translateService TranslateService No
userPreferencesService UserPreferencesService 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 getActiveNodeIcon
getActiveNodeIcon()
Returns : Promise<string>
Async getBookmarks
getBookmarks()
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 ""