Skip to content

ElectronApp.startAccessingSecurityScopedResource method

ElectronApp › startAccessingSecurityScopedResource

Unofficial

Starts accessing a security scoped resource. Must be balanced by calling the returned function once finished. macOS (MAS) only.

Signature:

startAccessingSecurityScopedResource(bookmarkData: string): () => void

Parameters:

Parameter Type Description
bookmarkData string The base64-encoded security scoped bookmark data.

Returns: () => voidA function that stops accessing the security scoped resource.