Class ISN_PHPhotoLibrary
A shared object that manages access to and changes in the user’s Photos library.
Inheritance
Inherited Members
Namespace: SA.iOS.Photos
Assembly: cs.temp.dll.dll
Syntax
public static class ISN_PHPhotoLibrary
Properties
AuthorizationStatus
Returns information about your app’s authorization for accessing the user’s Photos library.
Accessing the Photos library always requires explicit permission from the user.
Important:Your app’s Info.plist
file must provide a value for the NSPhotoLibraryUsageDescription
key
that explains to the user why your app is requesting Photos access.
Apps linked on or after iOS 10.0 will crash if this key is not present.
After the user grants permission, the system remembers the choice for future use in your app, but the user can change this choice at any time using the Settings app. If the user has denied your app photo library access, not yet responded to the permission prompt, or cannot grant access due to restrictions
Declaration
public static ISN_PHAuthorizationStatus AuthorizationStatus { get; }
Property Value
Type | Description |
---|---|
ISN_PHAuthorizationStatus |
Methods
RequestAuthorization(Action<ISN_PHAuthorizationStatus>)
Requests the user’s permission, if needed, for accessing the Photos library.
Accessing the Photos library always requires explicit permission from the user.
Important:Your app’s Info.plist
file must provide a value for the NSPhotoLibraryUsageDescription
key
that explains to the user why your app is requesting Photos access.
Apps linked on or after iOS 10.0 will crash if this key is not present.
After the user grants permission, the system remembers the choice for future use in your app, but the user can change this choice at any time using the Settings app. If the user has denied your app photo library access, not yet responded to the permission prompt, or cannot grant access due to restrictions
Declaration
public static void RequestAuthorization(Action<ISN_PHAuthorizationStatus> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<ISN_PHAuthorizationStatus> | callback | callback fired upon determining your app’s authorization to access the photo library. |