toggle menu
NavigationApp
androidJvm
switch theme
search in API
navigation-ux-favorites
/
com.mapbox.dash.favorites
/
FavoritePlaceViewModel
Favorite
Place
View
Model
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP_PREFIX
]
)
class
FavoritePlaceViewModel
:
ViewModel
Members
Properties
favorite
Dialog
Show
Info
Link copied to clipboard
val
favoriteDialogShowInfo
:
MutableState
<
DestinationSearchResult
?
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
@
NonNull
p0
:
Closeable
)
get
Favorite
Status
Link copied to clipboard
fun
getFavoriteStatus
(
searchResult
:
DestinationSearchResult
)
:
PlaceFavoriteStatus
observe
Favorite
Status
Link copied to clipboard
fun
observeFavoriteStatus
(
searchResult
:
DestinationSearchResult
)
:
Flow
<
PlaceFavoriteStatus
>
on
Toggle
Favorite
Link copied to clipboard
fun
onToggleFavorite
(
place
:
DestinationSearchResult
)
on
Type
Picked
Link copied to clipboard
fun
onTypePicked
(
place
:
DestinationSearchResult
,
typePickingResult
:
TypePickingResult
)