webex_flutter_plugin 0.0.1 copy "webex_flutter_plugin: ^0.0.1" to clipboard
webex_flutter_plugin: ^0.0.1 copied to clipboard

PlatformAndroid

Webex Flutter Plugin is a Flutter plugin designed to enable seamless video calling using the Webex Android SDK.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:webex_flutter_plugin/webex_flutter_plugin.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _webexFlutterPlugin = WebexFlutterPlugin();

  final _phoneController = TextEditingController();

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

  initPlatformState() async {
    try {
      await _webexFlutterPlugin.startWebexCalling(
          callerId: _phoneController.text.trim(), jwtToken: 'Webex JWT Token');
    } on PlatformException {
      debugPrint('Something went wrong');
    }

    if (!mounted) return;
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Webex Plugin example app'),
          ),
          body: Padding(
            padding: const EdgeInsets.all(30),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                TextField(
                  controller: _phoneController,
                ),
                ElevatedButton(onPressed: initPlatformState, child: const Text("Call Now ...!"))
              ],
            ),
          )),
    );
  }
}
2
likes
150
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Webex Flutter Plugin is a Flutter plugin designed to enable seamless video calling using the Webex Android SDK.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on webex_flutter_plugin