Tauri isPermissionGranted
2024-02-02 17:21 更新
isPermissionGranted():Promise
<boolean
>
检查是否授予发送通知的权限。
例
import { isPermissionGranted } from '@tauri-apps/api/notification';
const permissionGranted = await isPermissionGranted();
Since: 1.0.0
Returns: Promise
<boolean
>
以上内容是否对您有帮助:
更多建议: