Last updated:
0 purchases
flutter slam sdk
Combain Slam SDK Flutter Plugin #
This plugin is a wrapper for the Combain Slam SDK. It provides a simple way to integrate the SDK into your Flutter app.
Getting Started #
Installation #
To install the SDK you first need to edit your build.gradle for your android project. Open the build.gradle located here:
.
├── README.md
├── ...
└── android/
├── build.gradle <-
├── app/
└── ...
copied to clipboard
Then add this code at the top:
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://gitlab.com/api/v4/projects/3194773/packages/maven"
}
}
}
copied to clipboard
Then you need to change the minSdk version to 28 and the ext.kotlin_version to 1.9.21
ext.kotlin_version = '1.9.21'
...
defaultConfig {
...
minSdk = 28
}
copied to clipboard
For a complete example see the example build.gradle
Then run:
flutter pub add flutter_slam_sdk
copied to clipboard
Using SDK #
This is all the code needed to start receiving indoor location updates from the Combain Slam SDK.
FlutterSlamSDK slamSdk = FlutterSlamSDK(slamApiKey);
slamSdk.start();
slamSdk.addLocationUpdateListener(locationUpdateListener);
copied to clipboard
Demo #
For a demo project see https://gitlab.combain.com/Hugo-Persson/flutter-slam-sdk-demo-app
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.