Comments (4)
Hello,
You can't call the FRE functions directly from Swift. That's what FlashRuntimeExtensions.swift handles.
It bridges back to ObjectiveC
You call:
sendEvent(ctx: context, name: "RESULT", value: "SUCCESS")
where context is the FreContextSwift (which wraps FREContext)
https://github.com/tuarua/Swift-IOS-ANE/blob/master/native_library/ios/SwiftIOSANE/SwiftIOSANE_FW/SwiftController.swift#L20
from swift-ios-ane.
I've just added to example
https://github.com/tuarua/Swift-IOS-ANE/blob/master/native_library/ios/SwiftIOSANE/SwiftIOSANE_FW/SwiftController.swift#L58
from swift-ios-ane.
Oh, sorry for my mistake. I am able to compile now
Thank you very much.
from swift-ios-ane.
No problem. I should have included in the example.
from swift-ios-ane.
Related Issues (20)
- Support for iOS 11 HOT 5
- You're great. It's a great invention. HOT 1
- tvOS version - Register your interest here. (in BETA) HOT 1
- ERROR ITMS-90075 verify distribution build via app store HOT 4
- Support for iOS 12, Xcode 10, Swift 4.2 HOT 3
- FreFramework.framework for Swift 4.2? HOT 1
- native_extension/ane/build_xxx.sh script searches in wrong location HOT 1
- Anyway to cut down the size of ios dependencies frameworks? HOT 3
- Application Loader upload my ipa - WARNING ITMS-90722: "Certificate Expired. HOT 2
- code signature invalid for libswiftCore.dylib HOT 2
- App Crashes on the device. HOT 10
- code signature invalid for libswiftCore.dylib on ios 10.2 HOT 7
- Incompatible Swift version HOT 2
- Error when trying to run sample app HOT 2
- Is there any way to create the ANE for Flashbuilder HOT 1
- Error linking applications on Windows and Mac with older XCode (e.g. 10) HOT 3
- Widget ANE
- App Crashes on the device. HOT 1
- tvOS ANE strange error HOT 1
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 swift-ios-ane.