Example #1
0
        internal void ForeachImage(Action <PlaceImageHandle> action)
        {
            // PlaceImageHandle is valid only in this callback and users should not keep its reference
            ImagesCallback callback = (index, total, handle, userData) =>
            {
                action(new PlaceImageHandle(handle, true));
                return(true);
            };

            ForeachImage(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get image list from native handle");
        }
Example #2
0
 internal static extern ErrorCode ForeachImage(IntPtr /* maps_place_h */ place, ImagesCallback callback, IntPtr /* void */ userData);