android-components / mozilla.components.browser.storage.sync / PlacesBookmarksStorage / addItem

addItem

open suspend fun addItem(parentGuid: String, url: String, title: String, position: Int?): String (source)

Overrides BookmarksStorage.addItem

Adds a new bookmark item to a given node.

Sync behavior: will add new bookmark item to remote devices.

Parameters

parentGuid - The parent guid of the new node.

url - The URL of the bookmark item to add.

title - The title of the bookmark item to add.

position - The optional position to add the new node or null to append.

Return The guid of the newly inserted bookmark item.