OpenGraphObject.Factory
이 클래스는 더 이상 최신 버전의 SDK에서 사용할 수 없습니다.
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Exposes helpers for creating instances of OpenGraphObject.

확장:Object
패키지:model
생성자
OpenGraphObject.Factory()
public OpenGraphObject.Factory()
클래스 메서드
createForPost(String)

Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog. The object will have no properties other than a 'create_object' and 'data' property, ready to be populated.

public static OpenGraphObject createForPost(String type)
매개변수설명
typeThe Open Graph object type for the object, or null if it will be specified later
Returns
An OpenGraphObject
createForPost(Class, String)

Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog. The object will have no properties other than a 'create_object' and 'data' property, ready to be populated.

public static OpenGraphObject createForPost(Class graphObjectClass, String type)
매개변수설명
graphObjectClassThe OpenGraphObject-derived type to return
typeThe Open Graph object type for the object, or null if it will be specified later
Returns
An OpenGraphObject
createForPost(Class, String, String, String, String, String)

Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog. The object will have the specified properties, plus a 'create_object' and 'data' property, ready to be populated.

public static OpenGraphObject createForPost(Class graphObjectClass, String type, String title, String imageUrl, String url, String description)
매개변수설명
graphObjectClassThe OpenGraphObject-derived type to return
typeThe Open Graph object type for the object, or null if it will be specified later
titleThe title of the object, or null if it will be specified later
imageUrlThe URL of an image associated with the object, or null
urlThe URL associated with the object, or null
descriptionThe description of the object, or null
Returns
An OpenGraphObject