Packagecom.adobe.ane.social
Classpublic class SocialUI
InheritanceSocialUI Inheritance flash.events.EventDispatcher

The SocialUI class lets you display a modal window to make posts to social services.



Public Properties
 PropertyDefined By
  isSupported : Boolean
[static] [read-only] Indicates whether the Social class is supported on the underlying platform.
SocialUI
Public Methods
 MethodDefined By
  
SocialUI(socialServiceType:String)
Creates a new SocialUI instance by giving the initial message of the post and the social service being communicated to
SocialUI
  
addImage(bitmapData:BitmapData):Boolean
Adds an image to the post
SocialUI
  
addURL(url:String):Boolean
Adds a URL to the post
SocialUI
  
clear():Boolean
Removes all Images and URLs from the post
SocialUI
  
launch():void
Show the native UI for making a post.
SocialUI
  
setMessage(value:String):Boolean
Set the text of the post.
SocialUI
Protected Methods
 MethodDefined By
  
statusEventHandler(e:StatusEvent):void
SocialUI
Property Detail
isSupportedproperty
isSupported:Boolean  [read-only]

Indicates whether the Social class is supported on the underlying platform. Currently, the feature is only supported in AIR applications on iOS.


Implementation
    public static function get isSupported():Boolean
Constructor Detail
SocialUI()Constructor
public function SocialUI(socialServiceType:String)

Creates a new SocialUI instance by giving the initial message of the post and the social service being communicated to

Parameters
socialServiceType:String — The text to be posted to the social service

See also

com.adobe.ane.Social.SocialServiceType.TWITTER
com.adobe.ane.Social.SocialServiceType.FACEBOOK
com.adobe.ane.Social.SocialServiceType.SINAWEIBO
Method Detail
addImage()method
public function addImage(bitmapData:BitmapData):Boolean

Adds an image to the post

Parameters

bitmapData:BitmapData — BitmapData instance that contains the image to be added

Returns
Boolean — A Boolean that indicates whether the image was added successfully. Image size limits are dependent on the target service and are documented by the service provider.

See also

flash.display.BitmapData
addURL()method 
public function addURL(url:String):Boolean

Adds a URL to the post

Parameters

url:String — The URL to be added

Returns
Boolean — A Boolean that indicates whether the URL was added successfully. Character limits are dependent on the target service and are documented by the service provider.
clear()method 
public function clear():Boolean

Removes all Images and URLs from the post

Returns
Boolean — A Boolean that indicates whether or not images and urls were successfully removed from the post. If the UI is already presented to the user, the return value will be false.
launch()method 
public function launch():void

Show the native UI for making a post. The result of the interaction is given as an event.

See also

flash.events.Event.COMPLETE
flash.events.ErrorEvent.ERROR
flash.events.Event.CANCEL
setMessage()method 
public function setMessage(value:String):Boolean

Set the text of the post. This method returns false if text does not fit in the currently available character space or if the view controller has already been presented to the user (and therefore cannot be changed). Character limits are dependent on the target service and are documented by the service provider.

Parameters

value:String — The message of the post to be made

Returns
Boolean — A Boolean that indicates whether or not the message of the post could be changed.
statusEventHandler()method 
protected function statusEventHandler(e:StatusEvent):void

Parameters

e:StatusEvent