-
- All Implemented Interfaces:
public class Inquiry.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Inquiry.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final InquiryTemplateBuilder
fromTemplate(String templateId)
Create an Inquiry flow builder based on a template ID. final InquiryTemplateBuilder
fromTemplateVersion(String templateVersion)
Create an Inquiry flow builder based on a template ID version. final InquiryBuilder
fromInquiry(String inquiryId)
Create an Inquiry flow builder based on an inquiry ID. final InquiryResponse
onActivityResult(Intent intent, Context context)
Parse the response from the Persona Inquiry flow. final InquiryResponse
onActivityResult(Intent intent)
Parse the response from the Persona Inquiry flow. -
-
Method Detail
-
fromTemplate
final InquiryTemplateBuilder fromTemplate(String templateId)
Create an Inquiry flow builder based on a template ID.
You can find your template ID on the Persona Dashboard under "Development. https://withpersona.com/dashboard/integration
- Parameters:
templateId
- template ID from your Persona Dashboard
-
fromTemplateVersion
final InquiryTemplateBuilder fromTemplateVersion(String templateVersion)
Create an Inquiry flow builder based on a template ID version.
You can find your template ID on the Persona Dashboard under "Development. https://withpersona.com/dashboard/integration
- Parameters:
templateVersion
- template version from your Persona Dashboard
-
fromInquiry
final InquiryBuilder fromInquiry(String inquiryId)
Create an Inquiry flow builder based on an inquiry ID.
You will need to generate the inquiry ID on the server. To try it out, you can create an inquiry from the Persona Dashboard under "Inquiries". Click on the "Create Inquiry" button and copy the inquiry ID from the URL. https://withpersona.com/dashboard/inquiries
- Parameters:
inquiryId
- inquiry ID from your server
-
onActivityResult
@JvmOverloads()@MainThread()@Deprecated(message = "Use registerForActivityResult with the Inquiry.Contract instead.") final InquiryResponse onActivityResult(Intent intent, Context context)
Parse the response from the Persona Inquiry flow.
- Parameters:
intent
- from the Activity.onActivityResult
-
onActivityResult
@JvmOverloads()@MainThread()@Deprecated(message = "Use registerForActivityResult with the Inquiry.Contract instead.") final InquiryResponse onActivityResult(Intent intent)
Parse the response from the Persona Inquiry flow.
- Parameters:
intent
- from the Activity.onActivityResult
-
-
-
-