Android SDK Version
All Implemented Interfaces:
com.facebook.FacebookDialog

@Deprecated() 
public class DeviceShareDialog
extends FacebookDialogBase<ShareContent, DeviceShareDialog.Result>
                    
Provides functionality to share from devices. See https://developers.facebook.com/docs/android/devices
Only ShareLinkContent and ShareOpenGraphContent are supported.
The dialog does not indicate if the person completed a share. Therefore, the callback will always either invoke onSuccess or onError.
The dialog can also dismiss itself after the device code has expired.
Nested Class Summary
Modifier and TypeClassDescription
public classDeviceShareDialog.Result
Constructor Summary
ConstructorDescription
DeviceShareDialog(Activity activity)Constructs a new DeviceShareDialog.
DeviceShareDialog(Fragment fragment)Constructs a new DeviceShareDialog.
DeviceShareDialog(Fragment fragment)Constructs a new DeviceShareDialog.
Method Summary
Modifier and TypeMethodDescription
Methods inherited from class com.facebook.internal.FacebookDialogBase
canShow, getRequestCode, registerCallback, show
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

DeviceShareDialog

DeviceShareDialog(Activity activity)
Constructs a new DeviceShareDialog.
Parameters:
activity - Activity to use to share the provided content

DeviceShareDialog

DeviceShareDialog(Fragment fragment)
Constructs a new DeviceShareDialog.
Parameters:
fragment - fragment to use to share the provided content

DeviceShareDialog

DeviceShareDialog(Fragment fragment)
Constructs a new DeviceShareDialog.
Parameters:
fragment - fragment to use to share the provided content