mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
27 lines
578 B
C#
27 lines
578 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace CefSharp.Example
|
|
{
|
|
internal class DownloadHandler : IDownloadHandler
|
|
{
|
|
public bool OnBeforeDownload(string suggestedName, out string downloadPath, out bool showDialog)
|
|
{
|
|
downloadPath = Path.GetTempPath();
|
|
showDialog = true;
|
|
|
|
return true;
|
|
}
|
|
|
|
public bool ReceivedData(byte[] data)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void Complete()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|