LandmarkStoreCollection class Landmark Store
Collection of landmark stores and their enabled categories.
LandmarkStoreCollection represents a set of landmark stores and the category ids that are enabled for each store. It is not intended to be created directly; obtain an instance via MapViewPreferences.lmks. Typical uses include toggling visible categories for map UI, checking if a store or store/category pair is present, and iterating or clearing the collection.
See also:
- MapViewPreferences.lmks — obtain the active collection for a map view.
- LandmarkStore — store model used by the collection.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mapPointerId → int
-
no setter
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Returns the number of stores in the collection.
no setter
Methods
-
add(
LandmarkStore lms) → GemError -
Adds all categories from
lmsinto this collection. -
addAllStoreCategories(
int storeId) → GemError -
Adds all categories from the store identified by
storeIdinto this collection. -
addStoreCategoryId(
int storeId, int categoryId) → GemError - Adds a single category id to the specified store entry in the collection.
-
addStoreCategoryList(
int storeId, List< LandmarkCategory> categories) → GemError - Adds multiple categories to the specified store in a single operation.
-
clear(
) → void - Removes all stores and category entries from this collection.
-
contains(
int storeId, int categoryId) → bool -
Returns whether the given
storeIdandcategoryIdpair exists in the collection. -
containsLandmarkStore(
LandmarkStore lms) → bool -
Returns whether the provided
lmshas any enabled category in this collection. -
containsStoreId(
int storeId) → bool -
Returns whether the store identified by
storeIdhas any enabled category. -
dispose(
) → void -
Disposes the native object.
inherited
-
getCategoryCount(
int storeId) → int -
Returns the number of category ids enabled for
storeId. -
getStoreCategoryId(
int storeId, int indexCategory) → int -
Returns the category id at position
indexCategoryfor the storestoreId. -
getStoreIdAt(
int index) → int -
Returns the store id at the given zero-based
indexin the collection. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
remove(
LandmarkStore lms) → GemError -
Removes all category ids associated with the given
lmsfrom the collection. -
removeAllStoreCategories(
int storeId) → GemError -
Removes all categories associated with the store identified by
storeId. -
removeStoreCategoryId(
int storeId, int categoryId) → GemError -
Removes
categoryIdfrom the store identified bystoreId. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited