FelgoIOS initializes the Felgo runtime from a native iOS application. More...
Import Statement: | import Felgo 4.0 |
Since: | Felgo 3.7.0 |
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.
[read-only] sharedInstance : FelgoIOS |
This static property contains the singleton instance of the FelgoIOS class.
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().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: