Air Native Extension for social messaging on iOS This is an Air native extension for sending messages to social networks on iOS. It utilizes the social functionality added in iOS6. Binary filesThe 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 extensionTest 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 dispatchedAfter 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;
LicenseThis project is licensed under the BSD license
相关链接:
https://github.com/StickSports/Social-ANE
|