Comments (7)
What OS?
Are you using the provided example ?
Can you give the full error output
from desktoptoastane.
IntelliJ + Flex + macOS
This init function is not available
from desktoptoastane.
That's not a full error output. I need a screen grab or the full console output.
Are you using the provided example ?
If you are targeting macOS you need to use the sample code in StarlingRoot_OSX.as
Important lines are
37: use namespace osx;
45:dtANE.init();
from desktoptoastane.
use namespace osx did the trick !
Thank you.
- But I want also support Windows 10, so I need to have 2 class, one for macOS toasts and another one for Windows 10 toasts and the begin of the application validate if is macOS or Windows ?
- If I run the macOS code on Windows (or vice versa) it will throw an exception or the code will be ignored ?
- If I run the Windows toast code on non supported OS like XP, it will throw an exception or the code will be ignored ?
from desktoptoastane.
- Yes, use different classes for each Win8, 10, OSX. Check which OS the user is using. The Toasts are so different on each platform I couldn't write a single API.
- It will throw an exception
- The app will crash. Only call the ANE functions on Win 8, 10 and OSX
from desktoptoastane.
Thank you very much for your great ANE.
My needs is for macOS and Windows 10 and I support Windows XP >= so I will write a class for macOS using your ANE with specific code and another one for Windows 10 using your ANE using specific code and one main class for Toast that receive a message.
If if macOS, will call the macOS class, if is Windows 10 will call Windows 10 class otherwise, will ignore the message.
My toast will be very, very generic and will be a message to the user without buttons.
Thank you,
Hugo.
from desktoptoastane.
No problems. Sounds like a good way to do it.
Yes, I added ALL the features on each platform, but most users will only want a message and image.
from desktoptoastane.
Related Issues (11)
- UTF-8 HOT 12
- isSupported HOT 2
- Events not received on Windows 10 HOT 6
- Remove the C++ distributable dependency HOT 9
- Does this module handle Push Notifications to Mac & Windows ? HOT 3
- Windows activation suggestion HOT 1
- Windows 10 requirements HOT 12
- AIR for Windows 64 bits HOT 6
- isSupported does not work HOT 2
- I can't package targeting .air (for desktop) HOT 2
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 desktoptoastane.