iOS SDK 15.6.6,
Android SDK 15.5.2,
Hello Screen Dynamic States,
Bluedot Cordova plugin 4.0.1,
Bluedot Xamarin Android wrapper 15.5.2,
Bluedot Xamarin iOS wrapper 15.6.6,
Bluedot React Native wrapper 2.3.0,
Run this command:
With Dart:
$ dart pub add bluedot_point_sdk
Or with Flutter:
$ flutter pub add bluedot_point_sdk
This will add a line like this to your package’s pubspec.yaml (and run an implicit dart pub get
):
dependencies:
bluedot_point_sdk: ^1.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:bluedot_point_sdk/bluedot_point_sdk.dart';
Paramater | Type | Description |
projectId | String | The project Id you’re going to use. This can be found in the Canvas. |
import 'package:flutter/material.dart';
import 'package:bluedot_point_sdk/bluedot_point_sdk.dart';
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
_initializeBluedotPointSDK();
}
void _initializeBluedotPointSDK() {
BluedotPointSdk.instance.initialize('Your_bluedot_project_Id')
.then((value) {
// Successfully initialised Bluedot Point SDK
debugPrint('Bluedot Point SDK has been initialized');
}).catchError((error) {
// Failed to initialize Bluedot Point SDK. Handle error here.
debugPrint('Failed to initialize Bluedot Point SDK. Error: $error');
});
}
@override
Widget build(BuildContext context) {
return Container();
}
}
BluedotPointSdk.instance.isInitialized().then((value) { debugPrint('Is Bluedot Point SDK initialized?: $value'); });