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:

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasRegisteredAutoReleaseObject ↔ bool
getter/setter pairinherited
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 lms into this collection.
addAllStoreCategories(int storeId) → GemError
Adds all categories from the store identified by storeId into 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 storeId and categoryId pair exists in the collection.
containsLandmarkStore(LandmarkStore lms) → bool
Returns whether the provided lms has any enabled category in this collection.
containsStoreId(int storeId) → bool
Returns whether the store identified by storeId has 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 indexCategory for the store storeId.
getStoreIdAt(int index) → int
Returns the store id at the given zero-based index in 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 lms from the collection.
removeAllStoreCategories(int storeId) → GemError
Removes all categories associated with the store identified by storeId.
removeStoreCategoryId(int storeId, int categoryId) → GemError
Removes categoryId from the store identified by storeId.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited