InquiryConfiguration
public struct InquiryConfiguration : InquiryConfig
Undocumented
-
Creates a configuration object used for creating an Inquiry using a template ID.
Declaration
Swift
public init( templateId: String, environment: Environment? = .production, fields: [String: InquiryField]? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil )Parameters
templateIdAn existing template that determines how the flow is customized.
environmentThe Persona API environment on which to create inquiries.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
-
Creates a configuration object used for creating an Inquiry using a template ID and reference ID.
Declaration
Swift
public init( templateId: String, referenceId: String, environment: Environment? = .production, fields: [String: InquiryField]? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil )Parameters
templateIdAn existing template that determines how the flow is customized.
referenceIdThe identifier can be used to monitor user progress in newly created inquiries.
environmentThe Persona API environment on which to create inquiries.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
-
Creates a configuration object used for creating an Inquiry using a template ID and account ID.
Declaration
Swift
public init( templateId: String, accountId: String, environment: Environment? = .production, fields: [String: InquiryField]? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil )Parameters
templateIdAn existing template that determines how the flow is customized.
accountIdThe account to associate this inquiry with. The account can be used to monitor user progress in newly created inquiries.
environmentThe Persona API environment on which to create inquiries.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
-
Creates a configuration object used for creating an Inquiry using a template ID.
Declaration
Swift
public init( templateVersion: String, environment: Environment? = .production, fields: [String: InquiryField]? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil )Parameters
templateVersionAn existing template version that determines how the flow is customized.
environmentThe Persona API environment on which to create inquiries.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
-
Creates a configuration object used for creating an Inquiry using a template ID and reference ID.
Declaration
Swift
public init( templateVersion: String, referenceId: String, environment: Environment? = .production, fields: [String: InquiryField]? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil )Parameters
templateVersionAn existing template version that determines how the flow is customized.
referenceIdThe identifier can be used to monitor user progress in newly created inquiries.
environmentThe Persona API environment on which to create inquiries.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
-
Creates a configuration object used for creating an Inquiry using a template ID and account ID.
Declaration
Swift
public init( templateVersion: String, accountId: String, environment: Environment? = .production, fields: [String: InquiryField]? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil )Parameters
environmentThe Persona API environment on which to create inquiries.
templateVersionAn existing template version that determines how the flow is customized.
accountIdThe account to associate this inquiry with. The account can be used to monitor user progress in newly created inquiries.
environmentThe Persona API environment on which to create inquiries.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
-
Creates a configuration object used for creating an Inquiry using an inquiry ID.
Declaration
Swift
public init( inquiryId: String, sessionToken: String? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil )Parameters
inquiryIdAn existing inquiry.
sessionTokenSession token for resuming an Inquiry. The token must be generated on the server.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
-
build(inquiryId:sessionToken: templateVersion: templateId: referenceId: accountId: environment: fields: theme: nfcAdapter: collectionDelegate: ) Builds a configuration object. Validation is performed on the parameters supplied and fed to other public initializers. Prioritizes
inquiryIdovertemplateVersionovertemplateId(mutually exclusive) Also prioritizesreferenceIdoveraccountId(mutually exclusive) returns nil wheninquiryId,templateVersion, andtemplateIdare all nilDeclaration
Swift
public static func build( inquiryId: String? = nil, sessionToken: String? = nil, templateVersion: String? = nil, templateId: String? = nil, referenceId: String? = nil, accountId: String? = nil, environment: Environment? = nil, fields: [String: InquiryField]? = nil, theme: InquiryTheme? = nil, nfcAdapter: InquiryNfcAdapter? = nil, collectionDelegate: InquiryCollectionDelegate? = nil ) -> InquiryConfiguration?Parameters
inquiryIdAn existing inquiry.
sessionTokenSession token for resuming an Inquiry. The token must be generated on the server.
templateVersionAn existing template version that determines how the flow is customized.
templateIdAn existing template that determines how the flow is customized.
referenceIdThe identifier can be used to monitor user progress in newly created inquiries.
accountIdThe account to associate this inquiry with. The account can be used to monitor user progress in newly created inquiries.
environmentThe Persona API environment on which to create inquiries.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
nfcAdapterAn adapter that is used internally when using Nfc. Add the PersonaNfc framework to your project and pass in PersonaNfc() if enabling the Nfc capability.
collectionDelegateAn optional delegate to receive collected inquiry data in a client side callback.
View on GitHub
InquiryConfiguration Structure Reference