internal void ForeachCategory(Action <PlaceCategoryHandle> action) { // PlaceCategoryHandle is valid only in this callback and users should not keep its reference CategoriesCallback callback = (index, total, handle, userData) => { action(new PlaceCategoryHandle(handle, true)); return(true); }; ForeachCategory(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get category list from native handle"); }
internal static extern ErrorCode ForeachCategory(IntPtr /* maps_place_h */ place, CategoriesCallback callback, IntPtr /* void */ userData);