categories property
Returns all known generic categories.
This getter returns a List<LandmarkCategory> containing the generic
categories available in the SDK. On platform errors or when no
categories are available an empty list is returned.
Returns
List<LandmarkCategory>: the list of generic categories; empty when none are available.
Implementation
static List<LandmarkCategory> get categories {
final OperationResult resultString = staticMethod(
'GenericCategories',
'getCategories',
);
if (resultString['result'] == -1) {
return <LandmarkCategory>[];
}
return LandmarkCategoryList.init(resultString['result']).toList();
}