tencent_calls_uikit 1.3.0 copy "tencent_calls_uikit: ^1.3.0" to clipboard
tencent_calls_uikit: ^1.3.0 copied to clipboard

TUICallKit is a UIKit about audio&video calls launched by Tencent Cloud.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:tencent_calls_uikit/tuicall_kit.dart';
import 'package:tencent_calls_engine/tuicall_engine.dart';
import 'package:tuicall_kit_example/login_page.dart';
import 'package:tuicall_kit_example/store.dart';
import 'observer_functions.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 _callsUIKitPlugin = TUICallKit.instance;
  final _callsEnginePlugin = TUICallEngine.instance;
  UserInfo userInfo = UserInfo();
  @override
  void initState() {
    super.initState();

    /// 注册回调函数
    setObserverFubction(callsEnginePlugin: _callsEnginePlugin);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: LoginPageRoute(
          callsUIKitPlugin: _callsUIKitPlugin, userInfo: userInfo),
    );
  }
}
46
likes
0
pub points
90%
popularity

Publisher

verified publishertrtc.io

TUICallKit is a UIKit about audio&video calls launched by Tencent Cloud.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface, tencent_calls_engine

More

Packages that depend on tencent_calls_uikit