You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/develop/Plugins/develop-mobile.mdx
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,17 +335,14 @@ class ExamplePlugin: Plugin {
335
335
</TabItem>
336
336
</Tabs>
337
337
338
-
Tauri automatically implements two commands for the plugin: `checkPermissions` and `requestPermissions`. Those commands can be directly called from JavaScript or Rust:
339
-
340
-
{/* TODO: PermissionState type should be exported in Tauri */}
338
+
Tauri automatically implements two commands for the plugin: `checkPermissions` and `requestPermissions`.
339
+
Those commands can be directly called from JavaScript or Rust:
341
340
342
341
<Tabs>
343
342
<TabItemlabel="JavaScript">
344
343
345
344
```javascript
346
-
import { invoke } from'@tauri-apps/api/core'
347
-
348
-
type PermissionState ='granted'|'denied'|'prompt'|'prompt-with-rationale'
0 commit comments