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