flutter_cellrebel_sdk 1.8.3 copy "flutter_cellrebel_sdk: ^1.8.3" to clipboard
flutter_cellrebel_sdk: ^1.8.3 copied to clipboard

PlatformAndroidiOS
outdated

Flutter wrapper for CellRebelSDK

flutter_cellrebel_sdk #

Flutter wrapper for CellRebelSDK

Usage #

In your application entry point import CellRebelSDK module and run init method using your unique CLIENT_KEY string:

import 'package:flutter_cellrebel_sdk/flutter_cellrebel_sdk.dart';

// ...

CellRebelSDK.init(CLIENT_KEY);

Use startTracking to start measurement. On the first launch it's best to call this method after user response on location permission dialog. During the next sessions this method should be called when application finished launching:

CellRebelSDK.startTracking();

In some (rare) cases, if very high load tasks need to be performed, stopTracking can be used to abort an ongoing measurement sequence:

CellRebelSDK.stopTracking();

Call getVersion to retrieve current version of CellRebelSDK:

String sdkVersion = await CellRebelSDK.getVersion();

Use clearUserData if you need to request the removal of user data collected (based on GDPR 'right to be forgotten'):

bool success = await CellRebelSDK.clearUserData();

Calling clearUserData will deinitialize CellRebelSDK and remove all local data. init method should be called before using CellRebelSDK again.

Demo project #

https://github.com/cellrebel/flutter_cellrebel_sdk/blob/main/example/lib/main.dart

0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Flutter wrapper for CellRebelSDK

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_cellrebel_sdk