public static final class OpenGraphObject.Factory extends Object
Constructor and Description |
---|
OpenGraphObject.Factory() |
Modifier and Type | Method and Description |
---|---|
static <T extends OpenGraphObject> |
createForPost(Class<T> graphObjectClass,
String type)
Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog.
|
static <T extends OpenGraphObject> |
createForPost(Class<T> graphObjectClass,
String type,
String title,
String imageUrl,
String url,
String description)
Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog.
|
static OpenGraphObject |
createForPost(String type)
Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog.
|
public static OpenGraphObject createForPost(String type)
type
- the Open Graph object type for the object, or null if it will be specified laterpublic static <T extends OpenGraphObject> T createForPost(Class<T> graphObjectClass, String type)
graphObjectClass
- the OpenGraphObject-derived type to returntype
- the Open Graph object type for the object, or null if it will be specified laterpublic static <T extends OpenGraphObject> T createForPost(Class<T> graphObjectClass, String type, String title, String imageUrl, String url, String description)
graphObjectClass
- the OpenGraphObject-derived type to returntype
- the Open Graph object type for the object, or null if it will be specified latertitle
- the title of the object, or null if it will be specified laterimageUrl
- the URL of an image associated with the object, or nullurl
- the URL associated with the object, or nulldescription
- the description of the object, or null