custom_notification.dart 943 B

12345678910111213141516171819202122232425
  1. import 'custom_notification_platform_interface.dart';
  2. class CustomNotification {
  3. CustomNotification._();
  4. static Future<void> showRecordNotification(
  5. int notificationId, bool isRecording, String timeDesc,
  6. {required String channelId, required String channelName}) {
  7. return CustomNotificationPlatform.instance.showRecordNotification(
  8. notificationId, isRecording, timeDesc,
  9. channelId: channelId, channelName: channelName);
  10. }
  11. static Future<void> showAnalyseResultNotification(
  12. int notificationId, bool isSuccess, String talkId,
  13. {required String channelId, required String channelName}) {
  14. return CustomNotificationPlatform.instance.showAnalyseResultNotification(
  15. notificationId, isSuccess, talkId,
  16. channelId: channelId, channelName: channelName);
  17. }
  18. static Stream<String> recordActionStream() {
  19. return CustomNotificationPlatform.instance.recordActionStream();
  20. }
  21. }