Please note that we are no longer able to support this project and are not contributing to it.
This is an Air native extension for sending messages to social networks on iOS. It utilizes the social functionality added in iOS6.
The bin folder contains the compiled extension and the default swc, which can be used for local testing if required by your development environment (Flash Builder shouldn’t need it, but other IDEs may).
Social.isSupported : Boolean;
Is a boolean. Will return false on platforms other than iOS and on iOS versions prior to 6.0.
Social.isAvailableForService( service : SocialService ) : Boolean;
The possible values for the SocialService are
SocialService.twitter
SocialService.facebook
SocialService.sinaWeibo
var social : Social = new Social( service : SocialService );
Again, the possible values for the SocialService are
SocialService.twitter
SocialService.facebook
SocialService.sinaWeibo
Social.setMessage( message : String ) : Boolean;
Returns true if the message was successfully set, and false if not.
Social.addUrl( url : String ) : Boolean;
Returns true if the url was successfully added, and false if not.
Social.addImage( image : BitmapData ) : Boolean;
Returns true if the image was successfully added, and false if not.
Social.clearUrls() : Boolean;
Returns true if the urls were successfully cleared, and false if not.
Social.clearImages() : Boolean;
Returns true if the urls were successfully cleared, and false if not.
Social.launch() : Boolean;
Returns true if the view was successfully launched, and false if not.
After launching the message view, the user may edit and send the message or may cancel it. When this process is complete, one of two events will be dispatched form the Social object
SocialEvent.COMPLETE;
SocialEvent.CANCELLED;
This project is licensed under the BSD license