internal void Foreach(Action <AddressHandle> action) { AddressCallback callback = (index, handle, userData) => { action(AddressHandle.CloneFrom(handle)); return(true); }; Foreach(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get address list from native handle"); }
internal static extern ErrorCode GeocodeByStructuredAddress(this ServiceHandle /* maps_service_h */ maps, AddressHandle /* maps_address_h */ address, PreferenceHandle /* maps_preference_h */ preference, GeocodeCallback callback, IntPtr /* void */ userData, out int requestId);
internal static extern ErrorCode ListRemove(this AddressListHandle /* maps_address_list_h */ addressList, AddressHandle /* maps_address_h */ address);
internal static extern ErrorCode SetPostalCode(this AddressHandle /* maps_address_h */ address, string postalCode);
internal static extern ErrorCode SetFreeText(this AddressHandle /* maps_address_h */ address, string freetext);
internal static extern ErrorCode GetCountryCode(this AddressHandle /* maps_address_h */ address, out string countryCode);
internal static extern ErrorCode SetCounty(this AddressHandle /* maps_address_h */ address, string county);
internal static extern ErrorCode SetState(this AddressHandle /* maps_address_h */ address, string state);
internal static extern ErrorCode GetCity(this AddressHandle /* maps_address_h */ address, out string city);
internal static extern ErrorCode SetDistrict(this AddressHandle /* maps_address_h */ address, string district);
internal static extern ErrorCode GetStreet(this AddressHandle /* maps_address_h */ address, out string street);
internal static extern ErrorCode SetBuildingNumber(this AddressHandle /* maps_address_h */ address, string buildingNumber);