iOS SDK  7.3.0
 All Classes Files Functions Properties Pages
FlurryTumblr Class Reference

Inherits NSObject.

Class Methods

(void) + setConsumerKey:consumerSecret:
 Set the consumer key and secret. More...
 
(void) + post:presentingViewController:
 Authenticate and then share to Tumblr. More...
 
(void) + setDelegate:
 Sets the object to receive various delegate methods. More...
 
(UIImage *) + tumblrLogo
 Returns a Tumblr icon. More...
 

Detailed Description

Definition at line 39 of file FlurryTumblr.h.

Method Documentation

+ (void) post: (id< IFlurryTumblrShareParameters >)  parameters
presentingViewController: (UIViewController *)  presentingController 

Authenticate and then share to Tumblr.

Since
7.0.0

Flurry will do a one time authentication of the user and then post the shared content to Tumblr. To receive success and failure notifications please implement the FlurryTumblrDelegate protocol and register your viewcontroller as the delegate with Flurry.

See Also
FlurryTextShareParameters and FlurryImageShareParameters
- (void)tumblrPostImage:(NSURL*)imgPath withCaption:(NSString*)imgCaption
{
FlurryImageShareParameters* imgShareParameters = [[FlurryImageShareParameters alloc] init];
// set share parameters
imgShareParameters.imageURL = [imgPath absoluteString];
imgShareParameters.imageCaption = imgCaption;
imgShareParameters.iOSDeepLink = @"Your App’s iOS Deep Link to Content";
imgShareParameters.androidDeepLink = @"Your App’s Android Deep Link";
imgShareParameters.webLink = @"Your App’s Web Link"; *
// share
[FlurryTumblr post:imgShareParameters presentingViewController:self];
}
+ (void) setConsumerKey: (NSString *)  consumerKey
consumerSecret: (NSString *)  consumerSecret 

Set the consumer key and secret.

Since
7.0.0

Set your app’s consumer key and secret prior to making any calls to FlurryTumblr

- (void)applicationDidFinishLaunching:(UIApplication *)application
{
// set the consumer key and secret
[FlurryTumblr setConsumerKey:@”Your Consumer Key” consumerSecret:@”Your Consumer Secret”];
}
+ (void) setDelegate: (id< FlurryTumblrDelegate >)  delegate

Sets the object to receive various delegate methods.

Since
7.0.0

This method allows you to register an object that will receive notifications at different phases of Tumblr sharing.

See Also
FlurryTumblrDelegate.h for details on delegates available.
Note
: please don’t set the delegate to nil on viewDidUnload as Flurry Tumblr views are shown modally it is recommended instead to set it to nil in the dealloc of your delegate object.
- (void) viewDidLoad
{
[FlurryTumblr setDelegate:self];
// ....
}
Parameters
delegateThe object to receive notifications of various tumblr actions.
+ (UIImage*) tumblrLogo

Returns a Tumblr icon.

Since
7.0.0

This image can be used with a UI element such as a UI button that will share to Tumblr.

See Also
https://www.tumblr.com/logo for additional icons
- (void) addTumblrButton
{
UIButton* tumblrButton = [[UIButton alloc] init];
UIImage* tumblrImage = [FlurryTumblr tumblrLogo];
[tumblrButton setBackgroundImage:tumblrImage forState:UIControlStateNormal];
[self.view addSubView: tumblrButton];
// ....
}

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