EN | RU
aurora_intent
A plugin for working with intents in the Aurora OS. Aurora OS Intents Documentation
The plugin allows you to:
- call intents
Example :
await AuroraIntent.invokeIntent(
name: "MyIntent"
);
Contents
- Installation and build
- Detailed description
- Information about branches
- Compatibility
- Project structure
- Terms of use and participation in development
Installation and build
Add the plugin depending on the target application in the pubspec.yaml
file:
dependencies:
aurora_intent:
git:
url: https://developer.auroraos.ru/git/flutter/flutter-community-plugins/aurora_intent
Modify the .spec
file:
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(runtime-manager-qt5)
You also need to enable Qt support in aurora/main.cpp
:
...
#include <flutter/flutter_compatibility_qt.h> // Add for Qt
int main(int argc, char* argv[]) {
...
aurora::EnableQtCompatibility(); // Add for Qt
aurora::RegisterPlugins();
...
}
And update the dependencies:
flutter-aurora pub get
Detailed description
invokeIntent
Calling an intent in the Aurora OS
Future<Map<String, dynamic>> invokeIntent({required String name, Hints? hints, Map<String, dynamic>? params});
Arguments
-
name
- name of the intent:- standard
AuroraStandartIntents
:-
Start
- to start any actions or processes; -
Openurl
- to open a specific URI;
-
- custom;
- standard
-
hints
- hints for the intent service; -
params
- an arbitrary collection of parameters.
Return value
A сollection of return values from the intent handler
Example
Opening the settings app:
await AuroraIntent.invokeIntent(
name: AuroraStandartIntents.start,
hints: Hints(
preferredHandler: "com.jolla.settings",
),
);
Information about branches
The versions of the application comply with the branch naming agreement.
Compatibility
The plugin has been working correctly since the 5.0.0 version of the Aurora OS.
Terms of use and participation in development
The source code of the project is provided under license, which allows it to be used in third-party applications.
To participate in the development of the project, please read the participant agreement. If you plan to send your source code for inclusion in the project, you will need to accept the terms of the CLA.
Information about the participants is provided in the [AUTHORS] file(AUTHORS.md ).
Code of Conduct is the current set of rules of the Open Mobile Platform company, which informs about the expectations for interaction between community members when communicating and working on projects.