Janrain: User management platform for the social web

JRSmsObject Class Reference

Object containing the default message to be shared by sms. More...

#import <JRActivityObject.h>

Inherits NSObject.

List of all members.

Properties

NSString * message
NSArray * urls

Constructors



(id) - initWithMessage:andUrlsToBeShortened:
(id) + smsObjectWithMessage:andUrlsToBeShortened:

Detailed Description

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.

Note:
If the user attempts to share the activity via sms before the call to shorten the URLs is returned, the sms will contain the original URLs and the click-throughs will not be tracked.

Once the MFMessageComposeViewController is displayed, the given message string can be modified by the user.

Member Function Documentation

- (id) initWithMessage: (NSString*)  message
andUrlsToBeShortened: (NSArray*)  urls 

Returns a JRSmsObject initialized with the given message and URLs that you wish to be shortened to the http://rpx.me/ format.

Parameters:
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
Returns:
A JRSmsObject initialized with the given message text

Properties

- (NSString*) message [read, write, copy]

The desired message.

- (NSArray*) urls [read, write, copy]

An array of URLs that will be shortened to the http://rpx.me domain so that click-through rates can be tracked.


The documentation for this class was generated from the following files:
  • /Users/lillialexis/iPhone/engage.iphone/JREngage/classes/JRActivityObject.h
  • /Users/lillialexis/iPhone/engage.iphone/JREngage/classes/JRActivityObject.m
Copyright © 2017 Janrain, Inc.