Class BAErrorCode


  • public final class BAErrorCode
    extends java.lang.Object
    [@typedef] Background Assets error codes. [@constant] BAErrorCodeDownloadInvalid Invalid error code. [@constant] BAErrorCodeCallFromExtensionNotAllowed Calling this method from the download extension is not allowed. [@constant] BAErrorCodeCallFromInactiveProcessNotAllowed Calling this method from an inactive process is not allowed. [@constant] BAErrorCodeCallerConnectionNotAccepted This operation cannot be performed because the caller is not accepted based on its application or extension identifier. [@constant] BAErrorCodeCallerConnectionInvalid This operation cannot be performed because the connection to the background asset system service is invalid. [@constant] BAErrorCodeDownloadAlreadyScheduled A download with the requested identifier has already been scheduled. [@constant] BAErrorCodeDownloadNotScheduled The requested download is not scheduled. [@constant] BAErrorCodeDownloadFailedToStart The requested download failed to start. [@constant] BAErrorCodeDownloadAlreadyFailed The requested download has failed. [@constant] BAErrorCodeDownloadEssentialDownloadNotPermitted The requested download could not be enqueued because the download is marked as essential, which is prohibited in this context. [@constant] BAErrorCodeDownloadBackgroundActivityProhibited The requested download could not be enqueued. Check the deviceā€˜s Low Power Mode or Background App Refresh settings. [@constant] BAErrorCodeDownloadWouldExceedAllowance The requested download cannot be enqueued. The download would exceed the download allowance. [@constant] BAErrorCodeSessionDownloadDisallowedByDomain The requested URL is not permitted to be downloaded until the application is launched. [@constant] BAErrorCodeSessionDownloadDisallowedByAllowance The requested download will not be allowed due to running out of download allowance. [@constant] BAErrorCodeSessionDownloadAllowanceExceeded The requested download failed because the download allowance has been exceeded. [@constant] BAErrorCodeSessionDownloadNotPermittedBeforeAppLaunch The requested download cannot be scheduled before the app has been launched. API-Since: 17.0
    • Field Detail

      • DownloadInvalid

        public static final long DownloadInvalid
        API-Since: 17.0
        See Also:
        Constant Field Values
      • CallFromExtensionNotAllowed

        public static final long CallFromExtensionNotAllowed
        API-Since: 17.0
        See Also:
        Constant Field Values
      • CallFromInactiveProcessNotAllowed

        public static final long CallFromInactiveProcessNotAllowed
        API-Since: 17.0
        See Also:
        Constant Field Values
      • CallerConnectionNotAccepted

        public static final long CallerConnectionNotAccepted
        API-Since: 17.0
        See Also:
        Constant Field Values
      • CallerConnectionInvalid

        public static final long CallerConnectionInvalid
        API-Since: 17.0
        See Also:
        Constant Field Values
      • DownloadAlreadyScheduled

        public static final long DownloadAlreadyScheduled
        API-Since: 17.0
        See Also:
        Constant Field Values
      • DownloadNotScheduled

        public static final long DownloadNotScheduled
        API-Since: 17.0
        See Also:
        Constant Field Values
      • DownloadFailedToStart

        public static final long DownloadFailedToStart
        API-Since: 17.0
        See Also:
        Constant Field Values
      • DownloadAlreadyFailed

        public static final long DownloadAlreadyFailed
        API-Since: 17.0
        See Also:
        Constant Field Values
      • DownloadEssentialDownloadNotPermitted

        public static final long DownloadEssentialDownloadNotPermitted
        API-Since: 17.0
        See Also:
        Constant Field Values
      • DownloadBackgroundActivityProhibited

        public static final long DownloadBackgroundActivityProhibited
        API-Since: 17.0
        See Also:
        Constant Field Values
      • DownloadWouldExceedAllowance

        public static final long DownloadWouldExceedAllowance
        API-Since: 17.0
        See Also:
        Constant Field Values
      • SessionDownloadDisallowedByDomain

        public static final long SessionDownloadDisallowedByDomain
        API-Since: 17.0
        See Also:
        Constant Field Values
      • SessionDownloadDisallowedByAllowance

        public static final long SessionDownloadDisallowedByAllowance
        API-Since: 17.0
        See Also:
        Constant Field Values
      • SessionDownloadAllowanceExceeded

        public static final long SessionDownloadAllowanceExceeded
        API-Since: 17.0
        See Also:
        Constant Field Values
      • SessionDownloadNotPermittedBeforeAppLaunch

        public static final long SessionDownloadNotPermittedBeforeAppLaunch
        API-Since: 17.0
        See Also:
        Constant Field Values