-
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 Inquiry.TemplateBuilder
fromTemplate(String templateId)
Create an Inquiry flow builder based on a template ID. final Inquiry.InquiryBuilder
fromInquiry(String inquiryId)
Create an Inquiry flow builder based on an inquiry ID. final Inquiry.Response
onActivityResult(Intent intent)
Parse the response from the Persona Inquiry flow. -
-
Method Detail
-
fromTemplate
final Inquiry.TemplateBuilder 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/development
- Parameters:
templateId
- template ID from your Persona Dashboard
-
fromInquiry
final Inquiry.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
@MainThread() final Inquiry.Response onActivityResult(Intent intent)
Parse the response from the Persona Inquiry flow.
- Parameters:
intent
- from the Activity.onActivityResult
-
-
-
-