File tree 2 files changed +40
-0
lines changed 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,38 @@ public function menu(Menu $menu)
17
17
'items ' => $ items ,
18
18
]);
19
19
}
20
+
21
+ public function show ()
22
+ {
23
+ $ this ->client ->post ('dock/show ' );
24
+ }
25
+
26
+ public function hide ()
27
+ {
28
+ $ this ->client ->post ('dock/hide ' );
29
+ }
30
+
31
+ public function icon (string $ path )
32
+ {
33
+ $ this ->client ->post ('dock/icon ' , ['path ' => $ path ]);
34
+ }
35
+
36
+ public function bounce (string $ type = 'informational ' )
37
+ {
38
+ $ this ->client ->post ('dock/bounce ' , ['type ' => $ type ]);
39
+ }
40
+
41
+ public function cancelBounce ()
42
+ {
43
+ $ this ->client ->post ('dock/cancel-bounce ' );
44
+ }
45
+
46
+ public function badge (?string $ label = null ): void |string
47
+ {
48
+ if (is_null ($ label )) {
49
+ return $ this ->client ->get ('dock/badge ' );
50
+ }
51
+
52
+ $ this ->client ->post ('dock/badge ' , ['label ' => $ label ]);
53
+ }
20
54
}
Original file line number Diff line number Diff line change 6
6
use Native \Laravel \Menu \Menu ;
7
7
8
8
/**
9
+ * @method static void bounce()
10
+ * @method static void|string badge(string $type = null)
11
+ * @method static void cancelBounce()
12
+ * @method static void hide()
13
+ * @method static void icon(string $Path)
9
14
* @method static void menu(Menu $menu)
15
+ * @method static void show()
10
16
*/
11
17
class Dock extends Facade
12
18
{
You can’t perform that action at this time.
0 commit comments