Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

FelgoIOS

FelgoIOS initializes the Felgo runtime from a native iOS application. More...

Import Statement: import Felgo 4.0
Since: Felgo 3.7.0

Properties

Methods

Detailed Description

This item is available in native iOS code.

[FelgoIOS sharedInstance] contains the Felgo iOS runtime. Start it before using any QML content. For this, call [FelgoIOS start]. You can do this, for example, in your AppDelegate's didFinishLaunchingWithOptions method. When your app terminates, you can quit the Felgo Runtime again with [FelgoIOS quit].

 #import "FelgoIOS.h"

 @implementation AppDelegate

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

   // other code ...

   [[FelgoIOS sharedInstance] start];

   return YES;
 }

 - (void)applicationWillTerminate:(UIApplication *)application {

   // other code ...

   [[FelgoIOS sharedInstance] quit];
 }

 @end

Afterwards you can show QML content anywhere using FelgoIOSView.

For more information, see Integrate Felgo with Existing Applications.

Property Documentation

[read-only] sharedInstance : FelgoIOS

This static property contains the singleton instance of the FelgoIOS class.


Method Documentation

void quit()

Shut down the Felgo and Qt runtime. Call this when the application will terminate or you will no longer show any FelgoIOSView.

You can add this code to your AppDelegate implementation:

 - (void)applicationWillTerminate:(UIApplication *)application {
     [[FelgoIOS sharedInstance] quit];
 }

See also start().


void start()

Start the Felgo and Qt runtime. Call this before showing any FelgoIOSView.

You can add this code to your AppDelegate implementation:

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     [[FelgoIOS sharedInstance] start];

     return YES;
 }

See also quit().


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded