Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Favorites

Rostislav Wolný edited this page Feb 22, 2018 · 5 revisions

Favorites module manages user favorite places.

See favorites module api-doc.

Favorites module provides simple storage for favorite place ids. This module is intended to be used with Places module. You can combine getFavoritesPlaceIds with getPlacesDetailed to fetch all users favorite places.

sdk.favorites.addToFavorites(place.id)
sdk.favorites.removeFromFavorites(place.id)

sdk.favorites.getFavoritesPlaceIds() // returns List<String>
Clone this wiki locally