interface.uts 807 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export type CreateNotificationProgressOptions = {
  2. /**
  3. * 通知标题
  4. * @defaultValue 应用名称
  5. */
  6. title ?: string | null
  7. /**
  8. * 通知内容
  9. */
  10. content : string,
  11. /**
  12. * 进度
  13. */
  14. progress : number,
  15. /**
  16. * 点击通知消息回调
  17. * @defaultValue null
  18. */
  19. onClick? : (() => void) | null
  20. }
  21. export type FinishNotificationProgressOptions = {
  22. /**
  23. * 通知标题
  24. * @defaultValue 应用名称
  25. */
  26. title ?: string | null
  27. /**
  28. * 通知内容
  29. */
  30. content : string,
  31. /**
  32. * 点击通知消息回调
  33. */
  34. onClick : () => void
  35. }
  36. export type CreateNotificationProgress = (options : CreateNotificationProgressOptions) => void;
  37. export type CancelNotificationProgress = () => void;
  38. export type FinishNotificationProgress = (options: FinishNotificationProgressOptions) => void