public static class FacebookDialog.PhotoMessageDialogBuilder extends Object
FacebookDialog.canPresentMessageDialog(android.content.Context,
com.facebook.widget.FacebookDialog.MessageDialogFeature...)
indicates the capability is available.Modifier and Type | Field and Description |
---|---|
protected android.app.Activity |
activity |
protected FacebookDialog.PendingCall |
appCall |
protected String |
applicationId |
protected String |
applicationName |
protected android.support.v4.app.Fragment |
fragment |
protected HashMap<String,File> |
imageAttachmentFiles |
protected HashMap<String,android.graphics.Bitmap> |
imageAttachments |
Constructor and Description |
---|
PhotoMessageDialogBuilder(android.app.Activity activity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected CONCRETE |
addImageAttachment(String imageName,
android.graphics.Bitmap bitmap) |
protected CONCRETE |
addImageAttachment(String imageName,
File attachment) |
protected List<String> |
addImageAttachmentFiles(Collection<File> bitmapFiles) |
protected List<String> |
addImageAttachments(Collection<android.graphics.Bitmap> bitmaps) |
FacebookDialog |
build()
Constructs a FacebookDialog with an Intent that is correctly populated to present the dialog within
the Facebook application.
|
boolean |
canPresent()
Determines whether the native dialog can be presented (i.e., whether the required version of the
Facebook application is installed on the device, and whether the installed version supports all of
the parameters specified for the dialog).
|
CONCRETE |
setApplicationName(String applicationName)
Sets the name of the application to be displayed in the dialog.
|
CONCRETE |
setFragment(android.support.v4.app.Fragment fragment)
Sets the fragment that should launch the dialog.
|
CONCRETE |
setRequestCode(int requestCode)
Sets the request code that will be passed to handleActivityResult when this activity completes; the
default is NativeProtocol.DIALOG_REQUEST_CODE.
|
protected final android.app.Activity activity
protected final String applicationId
protected final FacebookDialog.PendingCall appCall
protected android.support.v4.app.Fragment fragment
protected String applicationName
public PhotoMessageDialogBuilder(android.app.Activity activity)
activity
- the Activity which is presenting the native Message dialog; must not be nullpublic CONCRETE setRequestCode(int requestCode)
requestCode
- the request codepublic CONCRETE setApplicationName(String applicationName)
applicationName
- the name of the Facebook applicationpublic CONCRETE setFragment(android.support.v4.app.Fragment fragment)
onActivityResult
call rather than the Activity.fragment
- the fragment that contains this controlpublic FacebookDialog build()
public boolean canPresent()
protected List<String> addImageAttachments(Collection<android.graphics.Bitmap> bitmaps)
protected List<String> addImageAttachmentFiles(Collection<File> bitmapFiles)
protected CONCRETE addImageAttachment(String imageName, android.graphics.Bitmap bitmap)
Copyright © 2014. All rights reserved.