Authorization
-
Manages initialization and authorization for Reader SDK.
Warning
You must initialize Reader SDK before attempting any other operation.Warning
All methods on this class must be called from the main thread.See
SQRDReaderSettingsControllerSee moreSee
SQRDCheckoutControllerDeclaration
Objective-C
@interface SQRDReaderSDK : NSObjectSwift
class SQRDReaderSDK : NSObject -
A completion handler that handles the result of an authorization attempt.
Declaration
Objective-C
typedef void (^SQRDAuthorizationHandler)(SQRDLocation *_Nullable, NSError *_Nullable)Swift
typealias SQRDAuthorizationHandler = (SQRDLocation?, Error?) -> VoidParameters
locationThe authorized location when authorization succeeds,
nilwhen authorization fails.errorAn error with domain
SQRDAuthorizationErrorDomainwhen authorization fails; otherwise,nil. SeeSQRDAuthorizationErrorfor possible error types. -
The types of errors that can occur when attempting to authorize Reader SDK.
See moreDeclaration
Objective-C
enum SQRDAuthorizationError {}Swift
typealias SQRDAuthorizationError.Code._ErrorType = SQRDAuthorizationError -
The authorization error domain.
Declaration
Objective-C
extern NSString *const _Nonnull SQRDAuthorizationErrorDomainSwift
let SQRDAuthorizationErrorDomain: String -
A completion handler that handles the result of a deauthorization attempt.
Declaration
Objective-C
typedef void (^SQRDDeauthorizationHandler)(NSError *_Nullable)Swift
typealias SQRDDeauthorizationHandler = (Error?) -> VoidParameters
errorAn error with domain
SQRDDeauthorizationErrorDomainwhen deauthorization fails; otherwise,nil. SeeSQRDDeauthorizationErrorfor possible error types. -
The types of errors that can occur when attempting to deauthorize Reader SDK.
See moreDeclaration
Objective-C
enum SQRDDeauthorizationError {}Swift
typealias SQRDDeauthorizationError.Code._ErrorType = SQRDDeauthorizationError -
The deauthorization error domain.
Declaration
Objective-C
extern NSString *const _Nonnull SQRDDeauthorizationErrorDomainSwift
let SQRDDeauthorizationErrorDomain: String
Authorization Reference