Type Aliases
The following type aliases are available globally.
-
Behavior of the API category that clients will use
Declaration
Swift
public typealias APICategoryBehavior = APICategoryRESTBehavior & APICategoryGraphQLBehavior & APICategoryInterceptorBehavior & APICategoryReachabilityBehavior & APICategoryAuthProviderFactoryBehavior
-
Declaration
Swift
public typealias GraphQLTask<R> = GraphQLOperation<R>.TaskAdapter where R : Decodable
-
Declaration
Swift
public typealias RESTTask = RESTOperation.TaskAdapter
-
Raw GraphQL Response String
Declaration
Swift
public typealias RawGraphQLResponse = String
-
GraphQL Response Result
Declaration
Swift
public typealias GraphQLResponse<ResponseType: Decodable> = Result<ResponseType, GraphQLResponseError<ResponseType>>
-
Analytics category properties
Declaration
Swift
public typealias AnalyticsProperties = [String : AnalyticsPropertyValue]
-
Declaration
Swift
public typealias AuthUIPresentationAnchor = ASPresentationAnchor
-
Declaration
Swift
public typealias AdditionalInfo = [String : String]
-
Set of allowed MFA types that would be used for continuing sign in during MFA selection step
Declaration
Swift
public typealias AllowedMFATypes = Set<MFAType>
-
Declaration
Swift
public typealias UserId = String
-
Declaration
Swift
public typealias Destination = String
-
Enum that holds the results of a
DataStore
operation.Seealso
DataStoreCallbackDeclaration
Swift
public typealias DataStoreResult<Success> = Result<Success, DataStoreError>
-
Function type of every
DataStore
asynchronous API.Declaration
Swift
public typealias DataStoreCallback<Result> = (DataStoreResult<Result>) -> Void
-
Declaration
Swift
public typealias DataStoreCategoryBehavior = DataStoreBaseBehavior & DataStoreSubscribeBehavior
-
Warning
Although this haspublic
access, it is intended for internal use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public typealias AuthRules = [AuthRule]
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public typealias ModelFieldName = String
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public typealias ModelFields = [String : ModelField]
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public typealias ModelName = String
-
Convenience type for a ModelIdentifier with a
ModelIdentifierFormat.Default
formatDeclaration
Swift
public typealias DefaultModelIdentifier<M> = ModelIdentifier<M, ModelIdentifierFormat.Default> where M : Model
-
Declaration
Swift
public typealias HubPublisher = AnyPublisher<HubPayload, Never>
-
Convenience typealias defining a closure that can be used to listen to Hub messages
Declaration
Swift
public typealias HubListener = (HubPayload) -> Void
-
Convenience typealias defining a closure that can be used to filter Hub messages
Declaration
Swift
public typealias HubFilter = (HubPayload) -> Bool
-
Declaration
Swift
public typealias HubPayloadEventName = String
-
Declaration
Swift
public typealias LogLevel = Amplify.LogLevel
-
- Tag: StorageDownloadDataTask
Declaration
Swift
public typealias StorageDownloadDataTask = AmplifyInProcessReportingOperationTaskAdapter<StorageDownloadDataRequest, Progress, Data, StorageError>
-
- Tag: StorageDownloadFileTask
Declaration
Swift
public typealias StorageDownloadFileTask = AmplifyInProcessReportingOperationTaskAdapter<StorageDownloadFileRequest, Progress, Void, StorageError>
-
- Tag: StorageUploadDataTask
Declaration
Swift
public typealias StorageUploadDataTask = AmplifyInProcessReportingOperationTaskAdapter<StorageUploadDataRequest, Progress, String, StorageError>
-
- Tag: StorageUploadFileTask
Declaration
Swift
public typealias StorageUploadFileTask = AmplifyInProcessReportingOperationTaskAdapter<StorageUploadFileRequest, Progress, String, StorageError>
-
Convenience typealias for a callback invoked with an asynchronous operation’s
Progress
- Tag: ProgressListener
Declaration
Swift
public typealias ProgressListener = (Progress) -> Void
-
Declaration
Swift
public typealias IdentityIDPathResolver = (String) -> String
-
Convenience typealias to clarify when Strings are being used as plugin keys
Declaration
Swift
public typealias PluginKey = String
-
Declaration
Swift
public typealias WeakAmplifyAsyncSequenceRef<Element> = WeakRef<AmplifyAsyncSequence<Element>>
-
Declaration
Swift
public typealias WeakAmplifyAsyncThrowingSequenceRef<Element> = WeakRef<AmplifyAsyncThrowingSequence<Element>>
-
See: AmplifyError.errorDescription
- Tag: ErrorDescription
Declaration
Swift
public typealias ErrorDescription = String
-
See: AmplifyError.recoverySuggestion
- Tag: RecoverySuggestion
Declaration
Swift
public typealias RecoverySuggestion = String
-
- Tag: ErrorName
Declaration
Swift
public typealias ErrorName = String
-
- Tag: Field
Declaration
Swift
public typealias Field = String
-
- Tag: Key
Declaration
Swift
public typealias Key = String
-
- Tag: TargetIdentityId
Declaration
Swift
public typealias TargetIdentityId = String
-
Convenience typealias
Declaration
Swift
public typealias BasicClosure = () -> Void
-
Declaration
Swift
public typealias BasicThrowableClosure = () throws -> Void
-
Unique name for Cancellable which handles a name conflict with the Combine framework.
Declaration
Swift
public typealias AmplifyCancellable = Cancellable