The novomind iAGENT Mail module of this SDK provides the functionality to create tickets in various formats.
This method displays the contact view controller inside a navigation controller with full screen view

presentContact(parentViewController: UIViewController, animated: Bool, mailContactCustomParameters: [(String, String)])
parentViewController: parent view controller that will hold the navigation controller of the novomind iAGENT view controlleranimated: display the view controller with animation or notmailContactCustomParameters: custom parameters to be sent with the mail, in the message bodymailContactEmailInput, mailContactEmailInputEnabled and mailContactAttachmentsEnabled in CustomiAGENTConfiguration used in SDK initialization are used in this view controller.
You can use our API if you want to send a request using your own UI:
SendContactApi.start(senderEmail: String, carbonCopyEmail: String, subject: String, messageText: String, messageHtml: String, mailContactCustomParameters: [(String, String)], attachments: [AttachmentData], completionBlock:@escaping (_ res:String?, _ error:String?)->Void)
attachments: array of AttachmentData, holding files to be attached with the mailAttachmentData contains:
String: name of the fileString: type of the file, eg: image/pngString: extension of the fileData: file data
public void presentContact(Context context, ArrayList<Pair<String, String>> mailContactCustomParameters)
context: application contextmailContactCustomParameters: custom parameters to be sent with the mail, in the message bodymailContactEmailInput, mailContactEmailInputEnabled and mailContactAttachmentsEnabled in CustomiAGENTConfiguration used in SDK initialization are used in this activity.
If you want to send a request using your own UI, please implement ApiProtocol in your Activity, then create instance of SendMailApi:
SendMailApi api = new SendMailApi(this);
public void start(String senderEmail, String carbonCopyEmail, String subject, String messageText, String messageHtml, ArrayList<Pair<String, String>> mailContactCustomParameters, ArrayList<File> files)
By implementing the ApiProtocol you can react on listeners to check the status of your request.