Last updated:
0 purchases
sentiance flutter
Sentiance SDK Flutter #
Flutter plugin for generating Mobile Health Status.
Disclaimer #
This is package is only for Android.
Sentiance SDK Flutter
Disclaimer
Getting Started
Prerequisites
Installation
Usage
Import package
Create Sentiance instance
Properties names
Get the Mobile Health Data
Stop Sentiance
Getting Started #
This flutter plugin is a wrapper around our Android SDKs.
The following documentation is only focused on the wrapper around our native Android SDKs. To know more about our SDKs and how to link them within the projects, refer to the following documentation:
Android:
https://docs.sentiance.com/sdk/changelog/android
Prerequisites #
Learn about the Sentiance Android Documentation .
Installation #
Fork the repository from url
Go to android/src/res/AndroidManifest.xml and your Geo Location API KEY
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value= "GOOGLE_API_KEY"/>
copied to clipboard
This plugin is available on Pub: https://pub.dev/packages/sentiance_flutter
Add this to dependencies in your app's pubspec.yaml
sentiance_flutter:
git: <Package url>
branch: master
copied to clipboard
Note for Android: Make sure that the minimum API level for your app is 19 or higher.
Run flutter packages get in the root directory of your app.
Usage #
Sample code to integrate can be found in example/lib/main.dart.
Import package
import 'package:sentiance_flutter/sentiance_flutter.dart';
copied to clipboard
Create Sentiance instance
await SentianceFlutter.initialiseSentiance();
copied to clipboard
Properties names
The Properties names which are used in the initialiseSentiance Method.
Properties Name
Description
token
A unique identifier for your sentiance account.
sentianceSecret
A secret key generated by Sentiance unique to your account.
appId
Unique identifier for each device.
crashDetectionUrl
Stores information regarding crash.
mobileHealthUrl
Stores information regarding Mobile Health.
Get the Mobile Health Data
await SentianceFlutter.getMobileHealthData
copied to clipboard
Stop Sentiance
await SentianceFlutter.stopSentianceSDK;
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.