Class PHPhotosError


  • public final class PHPhotosError
    extends java.lang.Object
    API-Since: 13.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AccessRestricted
      Access restricted by system configuration API-Since: 15.0
      static long AccessUserDenied
      The user has denied access API-Since: 15.0
      static long ChangeNotSupported
      The change request is not supported as configured API-Since: 15.0
      static long IdentifierNotFound
      Identifier was not found API-Since: 15.0
      static long InternalError
      An unknown, internal error occured API-Since: 13.0
      static long Invalid
      Deprecated.
      static long InvalidResource
      Asset resource validation failed API-Since: 15.0
      static long LibraryInFileProviderSyncRoot
      The Photos library bundle is in a File Provider Sync Root directory, which is not supported because it can corrupt the photo library API-Since: 15.4
      static long LibraryVolumeOffline
      The photo library is unavailable because the file system volume that contains it is not mounted (register for PHPhotoLibraryAvailabilityObserver) API-Since: 13.0
      static long MissingResource
      Asset resource missing API-Since: 15.0
      static long MultipleIdentifiersFound
      More than one identifier was found API-Since: 15.0
      static long NetworkAccessRequired
      The request for an asset resource failed because network access is required, set networkAccessAllowed = YES to enable network access API-Since: 14.0
      static long NetworkError
      The request for an asset resource failed due to a network connection error API-Since: 16.0
      static long NotEnoughSpace
      Not enough space to perform the requested change API-Since: 15.0
      static long OperationInterrupted
      Operation was interrupted and could not be completed, transient error API-Since: 15.0
      static long PersistentChangeDetailsUnavailable
      Change details are not available for this persistent change, and therefore the current library state cannot be reconstructed from change history API-Since: 16.0
      static long PersistentChangeTokenExpired
      The change token refers to a library state that is older than the available history of persistent changes API-Since: 16.0
      static long RelinquishingLibraryBundleToWriter
      The photo library became unavailable because the user moved, renamed, or deleted the system photo library (register for PHPhotoLibraryAvailabilityObserver) API-Since: 13.0
      static long RequestNotSupportedForAsset
      The request could not be completed because it is not supported for the specified asset API-Since: 15.0
      static long SwitchingSystemPhotoLibrary
      The photo library became unavailable because the user switched the system photo library (register for PHPhotoLibraryAvailabilityObserver) API-Since: 13.0
      static long UserCancelled
      The user cancelled the asset resource or editing request API-Since: 13.0
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Invalid

        @Deprecated
        public static final long Invalid
        Deprecated.
        DEPRECATED An unknown error occured API-Since: 13.0 Deprecated-Since: 15.0
        See Also:
        Constant Field Values
      • UserCancelled

        public static final long UserCancelled
        The user cancelled the asset resource or editing request API-Since: 13.0
        See Also:
        Constant Field Values
      • LibraryVolumeOffline

        public static final long LibraryVolumeOffline
        The photo library is unavailable because the file system volume that contains it is not mounted (register for PHPhotoLibraryAvailabilityObserver) API-Since: 13.0
        See Also:
        Constant Field Values
      • RelinquishingLibraryBundleToWriter

        public static final long RelinquishingLibraryBundleToWriter
        The photo library became unavailable because the user moved, renamed, or deleted the system photo library (register for PHPhotoLibraryAvailabilityObserver) API-Since: 13.0
        See Also:
        Constant Field Values
      • SwitchingSystemPhotoLibrary

        public static final long SwitchingSystemPhotoLibrary
        The photo library became unavailable because the user switched the system photo library (register for PHPhotoLibraryAvailabilityObserver) API-Since: 13.0
        See Also:
        Constant Field Values
      • NetworkAccessRequired

        public static final long NetworkAccessRequired
        The request for an asset resource failed because network access is required, set networkAccessAllowed = YES to enable network access API-Since: 14.0
        See Also:
        Constant Field Values
      • InternalError

        public static final long InternalError
        An unknown, internal error occured API-Since: 13.0
        See Also:
        Constant Field Values
      • IdentifierNotFound

        public static final long IdentifierNotFound
        Identifier was not found API-Since: 15.0
        See Also:
        Constant Field Values
      • MultipleIdentifiersFound

        public static final long MultipleIdentifiersFound
        More than one identifier was found API-Since: 15.0
        See Also:
        Constant Field Values
      • ChangeNotSupported

        public static final long ChangeNotSupported
        The change request is not supported as configured API-Since: 15.0
        See Also:
        Constant Field Values
      • OperationInterrupted

        public static final long OperationInterrupted
        Operation was interrupted and could not be completed, transient error API-Since: 15.0
        See Also:
        Constant Field Values
      • InvalidResource

        public static final long InvalidResource
        Asset resource validation failed API-Since: 15.0
        See Also:
        Constant Field Values
      • MissingResource

        public static final long MissingResource
        Asset resource missing API-Since: 15.0
        See Also:
        Constant Field Values
      • NotEnoughSpace

        public static final long NotEnoughSpace
        Not enough space to perform the requested change API-Since: 15.0
        See Also:
        Constant Field Values
      • RequestNotSupportedForAsset

        public static final long RequestNotSupportedForAsset
        The request could not be completed because it is not supported for the specified asset API-Since: 15.0
        See Also:
        Constant Field Values
      • AccessRestricted

        public static final long AccessRestricted
        Access restricted by system configuration API-Since: 15.0
        See Also:
        Constant Field Values
      • AccessUserDenied

        public static final long AccessUserDenied
        The user has denied access API-Since: 15.0
        See Also:
        Constant Field Values
      • NetworkError

        public static final long NetworkError
        The request for an asset resource failed due to a network connection error API-Since: 16.0
        See Also:
        Constant Field Values
      • LibraryInFileProviderSyncRoot

        public static final long LibraryInFileProviderSyncRoot
        The Photos library bundle is in a File Provider Sync Root directory, which is not supported because it can corrupt the photo library API-Since: 15.4
        See Also:
        Constant Field Values
      • PersistentChangeTokenExpired

        public static final long PersistentChangeTokenExpired
        The change token refers to a library state that is older than the available history of persistent changes API-Since: 16.0
        See Also:
        Constant Field Values
      • PersistentChangeDetailsUnavailable

        public static final long PersistentChangeDetailsUnavailable
        Change details are not available for this persistent change, and therefore the current library state cannot be reconstructed from change history API-Since: 16.0
        See Also:
        Constant Field Values