Comments (4)
@DSEWayne I could not really find time to verify why 'HostClose" may not work because of the holidays. Are you able to verify that your code is being called?
from chromely.
Hi, "HostClose" is being called and I can put code in there that is called upon close. I just can't see any way to cancel the close request. When the user closes the native app I want to be able to cancel the users close request if they have outstanding changes and prompt them with a HTML message box asking if they want to save before I allow the native app to be closed.
from chromely.
@DSEWayne I think I get your point now. There was never really any consideration for the option to avoid closing. The method was meant primarily to allow cleanups and other utility work before closing. What you are trying to do can be done though with some customization at your end.
from chromely.
Thanks, I thought that was the case. By "customization at your end" do you mean modifying the Chromely source code? Or can it be done another way?
I have a local copy of the source code and I've added a Boolean "cancel" property to the event args passed into the "HostClose" event and this is working. I can create a fork and add my changes in there.
from chromely.
Related Issues (20)
- Can't sync ChromelyResponse.RequestId with ChromelyRequest.Id HOT 1
- What does Chromely offer extra over MS's WebView2? HOT 3
- How to show message window on the desktop HOT 1
- How to get all cookies on the website and write to cookie HOT 1
- Howto: Set & Retrieve Cookies
- Possible to use golang to integrate with chromely HOT 1
- Can chromely be used for real time streaming like electron app
- Templates vsix can't install HOT 1
- Include libcef.dll etc. when publishing HOT 2
- FFmpegDemuxer: no supported streams
- FFmpegDemuxer: no supported streams HOT 3
- COM Interop is not supported on this platform. HOT 2
- [MacOs] Crashed when start demo-projects/angular-react-vue: WirelessDiagnostics awd::metrics::protobuf_AddDesc_SimpleMetric_2eproto() + 44 HOT 1
- adding eto.forms library ? HOT 3
- Chromely browser with miltiple tabs on Linux HOT 2
- Random exception in DefaultAsyncHandlerBase HOT 1
- App does not execute HOT 3
- WebView control for MAUI application using Chromely HOT 1
- Add Contributing Guide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromely.