Object containing the default message to be shared by sms. More...
Object containing the default message to be shared by sms.
Create an sms object, fill in the message field, and add the object to the JRActivityObject.sms property in your JRActivityObject. The given message string is supplied to the MFMessageComposeViewController class when the user wants to share your activity via sms.
If your sms message contains URLs that you would like shortened to an http://rpx.me/ (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 sms message.
|- (id) initWithMessage:||(NSString*)||message|
|message||The desired message text of the sms. If you want to include urls that are shortened to an http://rpx.me/ url, 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 MFMessageComposeViewController is displayed|
|urls||The array of urls that JREngage will shorten to an http://rpx.me/ url. 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 sms 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*) message
The desired message.
|- (NSArray*) urls
An array of URLs that will be shortened to the http://rpx.me domain so that click-through rates can be tracked.