alium_sdk 1.0.1 copy "alium_sdk: ^1.0.1" to clipboard
alium_sdk: ^1.0.1 copied to clipboard

PlatformAndroid

A flutter wrapper around Alium Android SDK

alium_sdk #

A wrapper around Alium's Android SDK.

Usage #

Configure the SDK with Config() #

import the alium package.

import 'package:alium_sdk/alium.dart';

Call configure method.

void main() {
  runApp(const MyApp());
  Alium.config("your_project_url");
}

This method should be the first method called when initializing the Alium SDK. It sets the project key or URL and must be invoked as soon as possible in your application's lifecycle.

Trigger Surveys #

Use Alium.trigger() with the screen name to display surveys.

 Alium.trigger("your_screen_name");

Passing custom parameters to survey #

 Alium.trigger("your_screen_name", {"dim1": "value"});

Passing parameters to survey with parameters builder: #

 SurveyParameters params = SurveyParametersBuilder("screen_name")
        .addDim(1, "alium")
        .addDim(2, "mumbai")
        .addCustom("number", "27838399")
        .build();
    Alium.triggerWithParams(params);
1
likes
130
points
137
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter wrapper around Alium Android SDK

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on alium_sdk

Packages that implement alium_sdk