public class GamingImageUploader
extends java.lang.Object
| Constructor and Description |
|---|
GamingImageUploader(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
uploadToMediaLibrary(java.lang.String caption,
android.graphics.Bitmap imageBitmap,
boolean shouldLaunchMediaDialog)
Uploads an image to a player's Gaming Media Library.
|
void |
uploadToMediaLibrary(java.lang.String caption,
android.graphics.Bitmap imageBitmap,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.Callback callback)
Uploads an image to a player's Gaming Media Library.
|
void |
uploadToMediaLibrary(java.lang.String caption,
java.io.File imageFile,
boolean shouldLaunchMediaDialog)
Uploads an image to a player's Gaming Media Library.
|
void |
uploadToMediaLibrary(java.lang.String caption,
java.io.File imageFile,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.Callback callback)
Uploads an image to a player's Gaming Media Library.
|
void |
uploadToMediaLibrary(java.lang.String caption,
android.net.Uri imageUri,
boolean shouldLaunchMediaDialog)
Uploads an image to a player's Gaming Media Library.
|
void |
uploadToMediaLibrary(java.lang.String caption,
android.net.Uri imageUri,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.Callback callback)
Uploads an image to a player's Gaming Media Library.
|
public void uploadToMediaLibrary(java.lang.String caption,
android.graphics.Bitmap imageBitmap,
boolean shouldLaunchMediaDialog)
caption - the user generated caption for the image, can be nullimageBitmap - a bitmap with the image that will be uploaded.shouldLaunchMediaDialog - if set to True will open the Media Dialog in the FB App
to allow the user to share the uploaded image.public void uploadToMediaLibrary(java.lang.String caption,
android.graphics.Bitmap imageBitmap,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.Callback callback)
caption - the user generated caption for the image, can be nullimageBitmap - a bitmap with the image that will be uploaded.shouldLaunchMediaDialog - if set to True will open the Media Dialog in the FB App
to allow the user to share the uploaded image.callback - a callback that will be called when the request is completed to
handle success or error conditions, can be null.public void uploadToMediaLibrary(java.lang.String caption,
java.io.File imageFile,
boolean shouldLaunchMediaDialog)
throws java.io.FileNotFoundException
caption - the user generated caption for the image, can be nullimageFile - the file containing the image to uploadshouldLaunchMediaDialog - if set to True will open the Media Dialog in the FB App
to allow the user to share the uploaded image.java.io.FileNotFoundException - if the file doesn't existpublic void uploadToMediaLibrary(java.lang.String caption,
java.io.File imageFile,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.Callback callback)
throws java.io.FileNotFoundException
caption - the user generated caption for the image, can be nullimageFile - the file containing the image to uploadshouldLaunchMediaDialog - if set to True will open the Media Dialog in the FB App
to allow the user to share the uploaded image.callback - a callback that will be called when the request is completed to
handle success or error conditions, can be null.java.io.FileNotFoundException - if the file doesn't existpublic void uploadToMediaLibrary(java.lang.String caption,
android.net.Uri imageUri,
boolean shouldLaunchMediaDialog)
throws java.io.FileNotFoundException
caption - the user generated caption for the image, can be nullimageUri - the file:// or content:// Uri to the image on deviceshouldLaunchMediaDialog - if set to True will open the Media Dialog in the FB App
to allow the user to share the uploaded image.java.io.FileNotFoundException - if the file doesn't existpublic void uploadToMediaLibrary(java.lang.String caption,
android.net.Uri imageUri,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.Callback callback)
throws java.io.FileNotFoundException
caption - the user generated caption for the image, can be nullimageUri - the file:// or content:// Uri to the image on deviceshouldLaunchMediaDialog - if set to True will open the Media Dialog in the FB App
to allow the user to share the uploaded image.callback - a callback that will be called when the request is completed to
handle success or error conditions, can be null.java.io.FileNotFoundException - if the file doesn't exist