Skip to content

Example Android and iOS projects to show how to add Felgo to existing apps

Notifications You must be signed in to change notification settings

FelgoSDK/Felgo-Add-To-App-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrate Felgo & Qt in Existing iOS or Android Apps

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.

nai-cube-chart

Native App Integration: Embed Felgo in Your iOS or Android App

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.

Felgo Add-to-App examples

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.

Building and running

Android

Open android folder in Android Studio, build & run on your device or emulator.

iOS

Cocoapods

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

Setup

Run pod install in ios folder. Open the generated NativeIntegrationExamples.xcworkspace in Xcode, build & run on your device or emulator.

Examples

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.

home

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.

Camera

Uses the QML Camera to take and save a picture.

The app can use that stored picture file in native code.

camera

Chart view

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.

chartview

3D view

Uses the QML 3D engine to show 3D content.

Uses the QML sensors API to interact with the 3D scene.

3dview

Image viewer

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.

imageviewer

Animations

Showcases some uses of the QML animation framework.

animations

Sensors

Uses the QML sensors API to obtain data from all device sensors in the native app.

sensors

About

Example Android and iOS projects to show how to add Felgo to existing apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •