| Package | com.distriqt.extension.facebook.share.model |
| Class | public class ShareMediaContentBuilder |
| Inheritance | ShareMediaContentBuilder Object |
| Method | Defined By | ||
|---|---|---|---|
Constructor
| ShareMediaContentBuilder | ||
addBitmap(bitmap:BitmapData):ShareMediaContentBuilder
Adds a photo to the content using the bitmap representation
| ShareMediaContentBuilder | ||
addVideoFile(file:File):ShareMediaContentBuilder | ShareMediaContentBuilder | ||
addVideoUrl(videoUrl:String):ShareMediaContentBuilder
Sets the URL that locates the video to be shared
On iOS the Facebook SDK requires an asset url (asset-library://...). | ShareMediaContentBuilder | ||
build():Object
Builds the object for sharing using ShareDialog.show
| ShareMediaContentBuilder | ||
setContentUrl(contentUrl:String):ShareMediaContentBuilder
Set the URL for the content being shared. | ShareMediaContentBuilder | ||
setPeopleIds(peopleIds:Array):ShareMediaContentBuilder
Set the list of Ids for taggable people to tag with this content
| ShareMediaContentBuilder | ||
setPlaceId(placeId:String):ShareMediaContentBuilder
Set the Id for a place to tag with this content
| ShareMediaContentBuilder | ||
setRef(ref:String):ShareMediaContentBuilder
Set the value to be added to the referrer URL when a person follows a link from this shared content on feed. | ShareMediaContentBuilder | ||
setShareHashtag(shareHashTag:String):ShareMediaContentBuilder
Set the ShareHashtag for this content
| ShareMediaContentBuilder | ||
| Constant | Defined By | ||
|---|---|---|---|
| MAX_MEDIA_COUNT : int = 30 [static]
People can share a maximum of MAX_MEDIA_COUNT photos or videos
| ShareMediaContentBuilder | ||
| MAX_VIDEO_COUNT : int = 1 [static]
People can share a maximum of MAX_VIDEO_COUNT video's
| ShareMediaContentBuilder | ||
| TYPE : String = media_content [static]
The type content contained in this builder
| ShareMediaContentBuilder | ||
| ShareMediaContentBuilder | () | Constructor |
public function ShareMediaContentBuilder()Constructor
| addBitmap | () | method |
public function addBitmap(bitmap:BitmapData):ShareMediaContentBuilderAdds a photo to the content using the bitmap representation
Parameters
bitmap:BitmapData — Bitmap representation of the photo
|
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| addVideoFile | () | method |
public function addVideoFile(file:File):ShareMediaContentBuilder
Parameters
file:File |
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| addVideoUrl | () | method |
public function addVideoUrl(videoUrl:String):ShareMediaContentBuilder
Sets the URL that locates the video to be shared
On iOS the Facebook SDK requires an asset url (asset-library://...).
You can retrieve these by using something like the CameraRollExtended ANE
to get your user to select the video.
If you provide a file url file://... or /...
this will attempt to add the video to the asset library (camera roll)
before creating the dialog.
Parameters
videoUrl:String — Uri that points to the location of the video on disk
|
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| build | () | method |
public function build():Object
Builds the object for sharing using ShareDialog.show
Object — The content Object
|
See also
| setContentUrl | () | method |
public function setContentUrl(contentUrl:String):ShareMediaContentBuilderSet the URL for the content being shared.
Parameters
contentUrl:String — The url of the content link
|
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| setPeopleIds | () | method |
public function setPeopleIds(peopleIds:Array):ShareMediaContentBuilderSet the list of Ids for taggable people to tag with this content
Parameters
peopleIds:Array — Array of Ids for people to tag
|
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| setPlaceId | () | method |
public function setPlaceId(placeId:String):ShareMediaContentBuilderSet the Id for a place to tag with this content
Parameters
placeId:String — The Id for the place to tag
|
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| setRef | () | method |
public function setRef(ref:String):ShareMediaContentBuilderSet the value to be added to the referrer URL when a person follows a link from this shared content on feed.
Parameters
ref:String — The ref for the content
|
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| setShareHashtag | () | method |
public function setShareHashtag(shareHashTag:String):ShareMediaContentBuilderSet the ShareHashtag for this content
Parameters
shareHashTag:String — The hashtag for this content
|
ShareMediaContentBuilder — ShareMediaContentBuilder instance for chaining calls
|
| MAX_MEDIA_COUNT | Constant |
public static const MAX_MEDIA_COUNT:int = 30People can share a maximum of MAX_MEDIA_COUNT photos or videos
| MAX_VIDEO_COUNT | Constant |
public static const MAX_VIDEO_COUNT:int = 1People can share a maximum of MAX_VIDEO_COUNT video's
| TYPE | Constant |
public static const TYPE:String = media_contentThe type content contained in this builder