SetProgress sets the dock progress indicator. fraction is in [0, 1]. Pass a negative value to hide the indicator.
(fraction float64)
| 59 | // SetProgress sets the dock progress indicator. fraction is in [0, 1]. |
| 60 | // Pass a negative value to hide the indicator. |
| 61 | func (d *Dock) SetProgress(fraction float64) { |
| 62 | d.mu.Lock() |
| 63 | defer d.mu.Unlock() |
| 64 | d.impl.SetProgress(fraction) |
| 65 | } |
| 66 | |
| 67 | // Bounce requests the user's attention. On macOS this bounces the dock icon; |
| 68 | // on Windows it flashes the taskbar entry; on Linux it is a best-effort call. |