Packagecom.myflashlab.air.extensions.share
Classpublic class Share
InheritanceShare Inheritance Object

ANE for summoning a platform share sheet.



Public Methods
 MethodDefined By
  
share($text:String, $sharePositionOrigin:Rectangle = null):void
[static] Summons the platform's share sheet to share text.
Share
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.share
[static]
Share
  VERSION : String = 0.0.11
[static]
Share
Method Detail
share()method
public static function share($text:String, $sharePositionOrigin:Rectangle = null):void

Summons the platform's share sheet to share text. Wraps the platform's native share dialog. Can share a text and/or a URL. It uses the ACTION_SEND Intent on Android and UIActivityViewController on iOS. The optional `sharePositionOrigin` parameter can be used to specify a global origin rect for the share sheet to popover from on iPads. It has no effect on non-iPads.

Parameters

$text:String
 
$sharePositionOrigin:Rectangle (default = null)

Constant Detail
EXTENSION_IDConstant
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.share

VERSIONConstant 
public static const VERSION:String = 0.0.11