Features like 3D Scenes, Custom UI or Visual Effects are hard to create natively with Android Studio or Apple Xcode. Save time and effort by using Felgo Native App Integration for rich experiences with 3D content, shaders, graphical effects, charts, multimedia, custom controls, gamification features or unique animations.
For detailed explanations see How to Add Smooth Animations, 3D, Charts or Mini-Games with a Custom Qt View in Xcode or Android Studio.
With Native App Integration, you can embed app views developed with the Felgo SDK into your existing mobile app. Felgo extends Qt, runs cross-platform, and offers many features, for example:
-
Custom UI and Visual Effects: No complex low level operations needed to create awesome UIs and animations. You can also work with charts, apply filter effects or render 3D content.
-
Sensors, File Downloads and Backend Services: Felgo makes working with sensors, loading assets at runtime, or integrating backend services easy. You can also test your cross-platform code standalone before running it in your native app.
-
2D Game Engine and Gamification: Use C++ based 2D physics with high performance gaming components, or integrate leaderboard or multiplayer services in your native app.
Using Felgo for your native iOS or Android app opens up a whole new world of possibilities. You can find a list of most relevant use-cases and some technical background in the sections below.
To add such features, you can simply run Felgo in an own view of your native iOS or Android app. Native App Integration allows you to:
-
Save Development Time: Felgo is a cross-platform tool that supports both Android, iOS, as well as Desktop or Embedded platforms. Save time by developing features only once for all platforms. You can also use Felgo tools like QML Hot Reload to e.g. instantly test your code on different devices and platforms.
-
Keep Existing Code: Only move parts of your project to Felgo. You can develop new features with Felgo, while keeping your existing code.
-
Transition to Cross-Platform: Replace old application code and migrate to cross-platform development step-by-step.
This repository contains several example projects showcasing how to integrate Felgo to your native app. The Felgo SDK can also be used stand-alone.
You can read more about Native App Integration at the official Felgo documentation.
Open android
folder in Android Studio, build & run on your device or emulator.
The iOS project requires Cocoapods. You can install them with the following command:
sudo gem install cocoapods
For more info see the Cocoapods page: https://guides.cocoapods.org/using/getting-started.html
Run pod install
in ios
folder. Open the generated NativeIntegrationExamples.xcworkspace
in Xcode, build & run on your device or emulator.
The example app contains multiple QML example showcases. Each demonstrates a potential use-case for Felgo and QML in a native app.
Each example is a view in the native app's navigation.
On Android, each example is a FelgoAndroidFragment
and shown in the navigation drawer.
On iOS, each example is a ViewController
that contains a FelgoIOSView
and shown in the UINavigationController
.
Most examples are implemented using Java on Android and Objective C on iOS. Felgo can also be added using Kotlin and Swift code, as demonstrated in the Chart view example.
Uses the QML Camera to take and save a picture.
The app can use that stored picture file in native code.
Uses the QML ChartView to visualize interactive data provided by the native application.
This example is implemented using Kotlin on Android and Swift on iOS.
Uses the QML 3D engine to show 3D content.
Uses the QML sensors API to interact with the 3D scene.
Shows an interactive image view.
Uses the QML PinchArea to add simple pinch-to-zoom and pan interaction.
The native app can provide the image for QML using native gallery selection.
Showcases some uses of the QML animation framework.
Uses the QML sensors API to obtain data from all device sensors in the native app.