Object containing content to be shared by email. More...
Object containing content to be shared by email.
Create an email object, fill in the fields, and add the object to the JRActivityObject.email property in your JRActivityObject. The given content is supplied to the MFMailComposeViewController class when the user wants to share your activity via email.
If your email message body contains URLs that you would like shortened to an http://rpx.me/ URL (with which you can track click-throughs), add the exact URL(s), as NSString*s, to the urls array. The library will contact the Engage servers to obtain shortened URLs and replace any instance of the url in your email body.
|- (id) initWithSubject:||(NSString *)||subject|
Returns a JREmailObject initialized with the given subject and message body.
|subject||The desired subject of the email. The user can edit this value once the MFMailComposeViewController is displayed|
|messageBody||The desired message body of the email. The message body can be in plain text or html, and if it is in html, this should be indicated by the argument isHtml. If you want to include urls that are shortened to an http://rpx.me/ they should be added to the urls array. Once the call to get the shortened URLs is completed, the library will replace all occurrences of each url with its corresponding shortened url. This value can be edited by the user once the MFMailComposeViewController is displayed|
|urls||The array of urls that JREngage will shorten to an http://rpx.me/ Once the call to get the shortened URLs is completed, the library will replace all occurrences of each url with its corresponding shortened url. To avoid blocking the UI, if the user tries to share via email before the call is returned, the original urls will remain. The URLs must be an NSString* representation of a well-formed URL, with a scheme and host. They cannot be an empty string or nil|
|- (NSString*) subject
The desired email subject.
|- (NSString*) messageBody
The desired message body.
|- (BOOL) isHtml
Specify YES if the body parameter contains HTML content or specify NO if it contains plain text.
|- (NSArray*) urls
An array of URLs that will be shortened to the http://rpx.me domain so that click-through rates can be tracked.