msa_flutter_plugin

Last updated:

0 purchases

msa_flutter_plugin Image
msa_flutter_plugin Images
Add to Cart

Description:

msa flutter plugin

msa_flutter_plugin #
A new Flutter plugin for MSA SDK.
How to Use? #

在pubspec.yaml中添加插件依赖

dependencies:
flutter:
sdk: flutter
msa_flutter_plugin: ^1.0.25+1
copied to clipboard

Add the following imports to your Dart code,example:

import 'package:msa_flutter_plugin/msa_flutter_plugin.dart';
...

class _MyHomePageState extends State<MyHomePage> {
...
MSAData _data;

Future<void> initMSAtate() async {
MSAData data = await MsaFlutterPlugin.getMsaIdConfigs();

if (!mounted) return;

setState(() {
_data = data;
print("是否支持MSA:${data.isSupport}");
print("oaid:${data.oaid}");
print("vaid:${data.vaid}");
print("aaid:${data.aaid}");
});
}
...
}

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.