• Example

    const {checkPermission, checkAllRootDirectoryPermissions} = usePermissions()

    checkAllRootDirectoryPermissions()

    Returns { checkAllRootDirectoryPermissions: (() => Promise<void>); checkPermission: ((fileOrDirectory: fsaDirectory | fsaFile) => void) }

    • checkAllRootDirectoryPermissions: (() => Promise<void>)
        • (): Promise<void>
        • Checks all the root Directories permissions and requests them if they have not been granted. NOTE: This must be attached to a user interaction like a button click or will fail.

          Returns Promise<void>

    • checkPermission: ((fileOrDirectory: fsaDirectory | fsaFile) => void)
        • (fileOrDirectory: fsaDirectory | fsaFile): void
        • Checks the permission of the root Directory for the passed fsaFile/fsaDirectory object, it requests the permission if it has not been granted previously. NOTE: This must be attached to a user interaction like a button click or will fail

          Parameters

          Returns void

Generated using TypeDoc