ICCameraFile.RequestSecurityScopedUrl Method

Definition

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

completion
ICCameraFileRequestSecurityScopedUrlCompletionHandler

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.

Applies to