mobile_protect 24.3.4 copy "mobile_protect: ^24.3.4" to clipboard
mobile_protect: ^24.3.4 copied to clipboard

Data Theorem's Mobile Protect SDK for mobile Flutter applications

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:mobile_protect/configuration/android/mobile_protect_configuration.dart';
import 'package:mobile_protect/mobile_protect.dart';
import 'ui/root_page.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  FlutterMobileProtect.initializeAndroidSdkWithConfiguration(
      androidMobileProtectConfiguration((it) {
        it.authenticationToken = "4u7h3nt1c4710n70k3N";
        it.camera((config) {
          config.isEnabled = true;
          config.exceptionList = ["com.exception.list"];
        });
        it.clipboard((config) {
          config.isEnabled = false;
        });
      })
  );
  runApp(const InternalExampleApp());
}

class InternalExampleApp extends StatefulWidget {
  const InternalExampleApp({Key? key})
      : super(
    key: key,
  );

  @override
  State createState() => _InternalExampleAppState();
}

class _InternalExampleAppState extends State<InternalExampleApp> {
  static const title = 'Instrumentation Example';

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
        title: title, home: RootPage(title: title));
  }
}
1
likes
0
points
573
downloads

Publisher

verified publisherdatatheorem.com

Weekly Downloads

Data Theorem's Mobile Protect SDK for mobile Flutter applications

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on mobile_protect

Packages that implement mobile_protect