Skip to content

StickSports/Social-ANE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air Native Extension for social messaging on iOS

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.

Binary files

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).

Using the extension

Test if the extension is supported

Social.isSupported : Boolean;

Is a boolean. Will return false on platforms other than iOS and on iOS versions prior to 6.0.

Test if a particular social network is supported

Social.isAvailableForService( service : SocialService ) : Boolean;

The possible values for the SocialService are

  • SocialService.twitter
  • SocialService.facebook
  • SocialService.sinaWeibo

Create a new social media message

var social : Social = new Social( service : SocialService );

Again, the possible values for the SocialService are

  • SocialService.twitter
  • SocialService.facebook
  • SocialService.sinaWeibo

Set the message text

Social.setMessage( message : String ) : Boolean;

Returns true if the message was successfully set, and false if not.

Add a URL to the message

Social.addUrl( url : String ) : Boolean;

Returns true if the url was successfully added, and false if not.

Add an image to the message

Social.addImage( image : BitmapData ) : Boolean;

Returns true if the image was successfully added, and false if not.

Clear all URLs from the message the message

Social.clearUrls() : Boolean;

Returns true if the urls were successfully cleared, and false if not.

Clear all images from the message the message

Social.clearImages() : Boolean;

Returns true if the urls were successfully cleared, and false if not.

Launch the iOS message view for the user to edit and send the message

Social.launch() : Boolean;

Returns true if the view was successfully launched, and false if not.

Events dispatched

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;

License

This project is licensed under the BSD license

About

Air Native Extension for social messaging on iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published