import 'package:openim_common/openim_common.dart';
import 'package:permission_handler/permission_handler.dart';

class CallPermissions {
  CallPermissions._();

  static Future<bool> ensureMicrophone() async {
    final status = await Permission.microphone.request();
    if (status.isGranted) return true;
    IMViews.showToast('需要麦克风权限才能通话');
    return false;
  }
}
