public class TumblrShare extends Object
PhotoPost postImage = new PhotoPost("Your App's photo to post");
postImage.setCaption("caption");
postImage.setAndroidDeeplink("Your App's Android Deep Link to Content");
postImage.setIOSDeepLink("Your App's iOS Deep Link to Content");
postImage.setWebLink("Your App's Web Link to Content");
postImage.setPostListener(fPostListener);
TumblrShare.post(mContext, postImage);
Constructor and Description |
---|
TumblrShare() |
Modifier and Type | Method and Description |
---|---|
static Bitmap |
getTumblrImage()
Api to get the default Tumblr logo.
|
static void |
post(Context context,
Post clickObj)
|
static void |
setOAuthConfig(String consumerApiKey,
String consumerApiSecret)
Set your app's consumer key and secret prior to making any post.
|
public static Bitmap getTumblrImage()
Bitmap.createScaledBitmap(TumblrShare.getTumblrImage(), widthInPixel, heightInPixel);
public static void setOAuthConfig(String consumerApiKey, String consumerApiSecret)
consumerApiKey
- The consumer api keyconsumerApiSecret
- The consumer api secret