CSSocial
 All Classes Functions Properties Pages
CSSocialService Class Reference
Inheritance diagram for CSSocialService:
<CSSocialService> CSSocialServiceFacebook CSSocialServiceGoogle CSSocialServiceTwitter

Instance Methods

(CSSocialRequest *) - requestWithParameter:response:
 
(void) - sendRequest:response:
 
(CSSocialRequest *) - requestWithParameter:
 
(id) - showDialogWithMessage:photo:handler:
 
- Instance Methods inherited from <CSSocialService>
(NSError *) - errorWithLocalizedDescription:
 
(NSOperationQueue *) - operationQueue
 
(void) - login:error:
 
(CSSocialRequest *) - constructRequestWithParameter:
 
(BOOL) - permissionGranted:
 
(void) - requestPermissionsForRequest:permissionsBlock:
 
(BOOL) - isAuthenticated
 
(void) - logout
 
(NSString *) - serviceName
 
(BOOL) - openURL:sourceApplication:annotation:
 
(BOOL) - handleOpenURL:
 

Properties

NSOperationQueue * requestQueue
 
CSErrorBlock permissionsBlock
 
CSVoidBlock loginSuccessBlock
 
CSErrorBlock loginFailedBlock
 

Method Documentation

- (CSSocialRequest*) requestWithParameter: (id< CSSocialParameter >)  parameter

this is a convenience method that you can use for automatic request construction based on the parameter object passed

Parameters
parameteran object that describes the main request details
Returns
CSSocialRequest instance
- (void) sendRequest: (CSSocialRequest *)  request
response: (CSSocialResponseBlock)  responseBlock 

sends a request to a social service and handles a callback when the sevice has returned the result

Parameters
requesta CSSocialRequest you constructed manually or by using requestWithParameter:
responseBlockcallback block with results
- (id) showDialogWithMessage: (NSString *)  message
photo: (UIImage *)  photo
handler: (CSErrorBlock)  handlerBlock 

shows the dialog box of the service (where available) with initial message and photo parameters

Parameters
messageinitial message
photophoto to upload
handlerBlockcallback block containing an error if one occured.
Returns
instance od the dialog if available or nil if unavailable.

The documentation for this class was generated from the following file: