ICCameraFile.RequestSecurityScopedUrl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Requests a security-scoped URL for a media file on a mass storage volume.
[Foundation.Export("requestSecurityScopedURLWithCompletion:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void RequestSecurityScopedUrl(ImageCaptureCore.ICCameraFileRequestSecurityScopedUrlCompletionHandler completion);
[<Foundation.Export("requestSecurityScopedURLWithCompletion:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestSecurityScopedUrl : ImageCaptureCore.ICCameraFileRequestSecurityScopedUrlCompletionHandler -> unit
override this.RequestSecurityScopedUrl : ImageCaptureCore.ICCameraFileRequestSecurityScopedUrlCompletionHandler -> unit
Parameters
A callback invoked with the security-scoped URL and any error that occurred.
- Attributes
Remarks
The returned NSUrl requires the use of StartAccessingSecurityScopedResource and StopAccessingSecurityScopedResource for access.