Static Public Member Functions

OFSocialNotificationApi Class Reference

#import <OFSocialNotificationApi.h>

List of all members.

Static Public Member Functions

(void) + setDelegate:
(void) + setCustomUrl:
(void) + sendWithPrepopulatedText:originalMessage:imageNamed:
(void) + sendSuccess
(void) + sendFailure

Detailed Description

The public interface for OFSocialNotificationApi allows you to post notifications to social networks if the user is connected via OpenFeint to a social network.


Member Function Documentation

+ (void) sendFailure
+ (void) sendSuccess
+ (void) sendWithPrepopulatedText: (NSString *)  text
originalMessage: (NSString *)  message
imageNamed: (NSString *)  imageName 

Prompt the current user to post to social networks.

Parameters:
textThe prepopulated text that is not editable in the message.
messageThe suggested message for the user to send. This is editable by the user. If you set this parameter to nil, OpenFeint fills in placeholder text of "Add a Message!". The place holder text will not be sent along with the social notification.
imageNameName of the image on the developer dashboard.
Note:
imageName can be nil if there is no image to post.
+ (void) setCustomUrl: (NSString *)  url

Set a url for social notifications you post through the api. This will be linked to social notification posts.

Parameters:
urlthe url linked on social notifications.
+ (void) setDelegate: (id< OFSocialNotificationApiDelegate >)  delegate

Set a delegate for all OFSocialNotifications related actions. Must adopt the OFSocialNotificationApiDelegate protocol.

Note:
Defaults to nil. Weak reference.

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Properties