SnapscreenErrorCode
enum SnapscreenErrorCode {}
A list of possible error codes that are returned by SnapscreenKit. The error domain for errors from SnapscreenKit
is usually SnapscreenKitErrorDomain
unless some underlying error is the cause.
-
Authentication credentials (clientID and clientSecret) are missing
Declaration
Objective-C
SnapscreenClientCredentialsMissing
Swift
case clientCredentialsMissing = 0
-
The provided authentication credentials (clientID and clientSecret) are invalid
Declaration
Objective-C
SnapscreenClientCredentialsInvalid
Swift
case clientCredentialsInvalid = 1
-
The resource bundle (SnapscreenKit.bundle) is missing from the application bundle
Declaration
Objective-C
SnapscreenResourceBundleMissing
Swift
case resourceBundleMissing = 2
-
An error occured while loading webresources
Declaration
Objective-C
SnapscreenWebSearchError
Swift
case webSearchError = 3
-
Web search resulted in no results
Declaration
Objective-C
SnapscreenWebSearchNoResults
Swift
case webSearchNoResults = 4
-
No access token could be fetched
Declaration
Objective-C
SnapscreenAccessTokenMissing
Swift
case accessTokenMissing = 5
-
Direct snap was attempted without providing SnapConfiguration
Declaration
Objective-C
SnapscreenSnapperConfigurationMissing
Swift
case snapperConfigurationMissing = 6
-
Direct snap failed because of an unknown error
Declaration
Objective-C
SnapscreenSnapperUnknownError
Swift
case snapperUnknownError = 7
-
Direct snap was cancelled
Declaration
Objective-C
SnapscreenSnapperCancelled
Swift
case snapperCancelled = 8