Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
 internal static extern ErrorCode ForeachContact(IntPtr /* maps_place_h */ place, ContactsCallback callback, IntPtr /* void */ userData);