dockservice.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // @ts-check
  2. // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
  3. // This file is automatically generated. DO NOT EDIT
  4. /**
  5. * Service represents the dock service
  6. * @module
  7. */
  8. // eslint-disable-next-line @typescript-eslint/ban-ts-comment
  9. // @ts-ignore: Unused imports
  10. import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
  11. // eslint-disable-next-line @typescript-eslint/ban-ts-comment
  12. // @ts-ignore: Unused imports
  13. import * as $models from "./models.js";
  14. /**
  15. * GetBadge returns the badge label on the application icon.
  16. * @returns {$CancellablePromise<string | null>}
  17. */
  18. export function GetBadge() {
  19. return $Call.ByID(1150236961);
  20. }
  21. /**
  22. * HideAppIcon hides the app icon in the dock/taskbar.
  23. * @returns {$CancellablePromise<void>}
  24. */
  25. export function HideAppIcon() {
  26. return $Call.ByID(3413658144);
  27. }
  28. /**
  29. * RemoveBadge removes the badge label from the application icon.
  30. * @returns {$CancellablePromise<void>}
  31. */
  32. export function RemoveBadge() {
  33. return $Call.ByID(2752757297);
  34. }
  35. /**
  36. * SetBadge sets the badge label on the application icon.
  37. * @param {string} label
  38. * @returns {$CancellablePromise<void>}
  39. */
  40. export function SetBadge(label) {
  41. return $Call.ByID(1717705661, label);
  42. }
  43. /**
  44. * SetCustomBadge sets the badge label on the application icon with custom options.
  45. * @param {string} label
  46. * @param {$models.BadgeOptions} options
  47. * @returns {$CancellablePromise<void>}
  48. */
  49. export function SetCustomBadge(label, options) {
  50. return $Call.ByID(2730169760, label, options);
  51. }
  52. /**
  53. * ShowAppIcon shows the app icon in the dock/taskbar.
  54. * @returns {$CancellablePromise<void>}
  55. */
  56. export function ShowAppIcon() {
  57. return $Call.ByID(3409697379);
  58. }