EN | RU
Call API plugin
The plugin is an example of using Call API
on the Aurora OS.
The main aim is to show which functions are available from the API and how to use them.
The application can invoke an incoming, an outcoming calls by using the system application and get the call current status.
Contents
- Application description
- Build features
- Branch information
- Installation and build
- Screenshots
- Compatibility
- Use cases
- Project Structure
- Terms of Use and Participation
Build features
To build the example move to the example
directory, update the dependencies
flutter-aurora pub get
and run building
flutter-aurora run
Branch information
The application versions accords to the convention about branch naming.
Installation and build
To use the plugin modify the .desktop-file of the target application:
Permissions=Call;Audio
Add the plugin to the target application dependencies in the pubspec.yaml file:
dependencies:
call_api_plugin:
git:
url: https://os-git.omprussia.ru/external_flutter_examples/CallApi.git
Import and use the plugin:
/// Create a call manager instance at the top of your home page state class
final callManager = CallManager();
/// Add this line to invoke an incoming call
callManager.startIncomingCall(remoteName: "Joe Doe");
/// Add this line to invoke an outcoming call
callManager.startOutcomingCall(remoteName: "Joe Doe");
/// Get the current status of the call
String newStatus = await callManager.getStatus();
The startIncomingCall
and startOutcomingCall
methods can take the parameters from
the Call.Call1 property list.
Screenshots
Compatibility
The project is compatible with version 5.0.0 of the Aurora OS.
Use cases
Starting an incoming call
- To start an incoming call, click on the
Incoming call
button. - It's possible to accept the call or reject it in the opened system application.
Starting an outcoming call
- To start an incoming call, click on the
Outcoming call
button. The connection will be established in 5 seconds. - It's possible to end the call in the opened system application.
The current call status request
To get the current call status, click on the Get status
button.
Project Structure
The project has a standard structure of an application based on Dart and Flutter for Aurora OS.
- dbus_schemas directory describes the component generation schemas which are used by DBus.
- example directory contains an application example which uses the plugin.
-
lib directory contains the Dart source code of the plugin.
- src directory contains the plugin implementation in Dart.
- call_api.dart file describes the public functionality of the plugin.
- pubspec.yaml file describes dependencies and the plugin name settings.
Terms of Use and Participation
The source code of the project is provided under the license, that allows it to be used in third-party applications.
To participate in the development of the project, please read the contributor agreement. If you plan to contribute your own source code to the project, you will need to accept the CLA agreement.
For information about contributors see AUTHORS.
Code of conduct is a current set of rules of the Open Mobile Platform which informs you how we expect the members of the community will interact while contributing and communicating.