scatesdk_flutter

Last updated:

0 purchases

scatesdk_flutter Image
scatesdk_flutter Images
Add to Cart

Description:

scatesdk flutter

ScateSDK Flutter Plugin #
Installation #
Install via CLI;
flutter pub add scatesdk_flutter
copied to clipboard
Or
Add the following into your pubspec.yaml file;
dependencies:
scatesdk_flutter: ^0.3.6
copied to clipboard
Usage #
Initialize the SDK #
import 'package:scatesdk_flutter/scatesdk_flutter.dart';


class _MyAppState extends State<MyApp> {

@override
void initState() {
super.initState();
initPlatformState();
}

// Platform messages are asynchronous, so we initialize in an async method.
Future<void> initPlatformState() async {

// ... Your initialization code
// Adjust SDK initialization
// ...
// Initialize ScateSDK
ScateSDK.Init("<your app id>");
// make sure to set adid from Adjust SDK
String adid = await Adjust.adid();
ScateSDK.SetAdid(adid);


}

}

copied to clipboard
Send Events #
To send events, you can use the following code:

ScateSDK.Event("button_clicked");

copied to clipboard
Send Events with Additional Data #

ScateSDK.EventWithValue("button_clicked", "subscribe_btn");

copied to clipboard
Get Remote Config for Key #

ScateSDK.GetRemoteConfig('key', 'defaultValue');

copied to clipboard
Add Listener #
ScateSDK.AddListener(ScateEvents.REMOTE_CONFIG_READY, (event) => {});
copied to clipboard
Remove Listener #
ScateSDK.RemoveListener(ScateEvents.REMOTE_CONFIG_READY);
copied to clipboard
Clean Listeners #
ScateSDK.CleanListeners(ScateEvents.REMOTE_CONFIG_READY);
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.