Packagecom.myflashlab.air.extensions.pm
Classpublic class PackageManager
InheritancePackageManager Inheritance Object



Public Properties
 PropertyDefined By
  USE_AIR_PREFIX_FOR_ANDROID : Boolean = true
[static]
PackageManager
Public Methods
 MethodDefined By
  
PackageManager
  
[static]
PackageManager
  
checkPermission($permissionName:String, $packageName:String):int
[static]
PackageManager
  
checkSignatures($package1:String, $package2:String):int
[static]
PackageManager
  
getAppIcon($packageName:String):BitmapData
[static]
PackageManager
  
getInstalledPackages($systemApps:Boolean):Array
[static]
PackageManager
  
getPackageInfo($packageName:String):PackageInfo
[static]
PackageManager
  
init():void
[static]
PackageManager
  
[static]
PackageManager
  
installApplicationFromGooglePlay($packageName:String):void
[static]
PackageManager
  
isInstantApp($packageName:String):Boolean
[static]
PackageManager
  
requestPackageInstalls($callback:Function):void
[static]
PackageManager
  
runApplication($packageName:String, $extras:Array = null):void
[static]
PackageManager
  
uninstallApplication($packageName:String):void
[static]
PackageManager
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.packageManager
[static]
PackageManager
  PERMISSION_DENIED : int = -1
[static]
PackageManager
  PERMISSION_GRANTED : int = 0
[static]
PackageManager
  SIGNATURE_FIRST_NOT_SIGNED : int = -1
[static]
PackageManager
  SIGNATURE_MATCH : int = 0
[static]
PackageManager
  SIGNATURE_NEITHER_SIGNED : int = 1
[static]
PackageManager
  SIGNATURE_NO_MATCH : int = -3
[static]
PackageManager
  SIGNATURE_SECOND_NOT_SIGNED : int = -2
[static]
PackageManager
  SIGNATURE_UNKNOWN_PACKAGE : int = -4
[static]
PackageManager
  VERSION : String = 3.0.0
[static]
PackageManager
Property Detail
USE_AIR_PREFIX_FOR_ANDROIDproperty
public static var USE_AIR_PREFIX_FOR_ANDROID:Boolean = true

Constructor Detail
PackageManager()Constructor
public function PackageManager()



Method Detail
canRequestPackageInstalls()method
public static function canRequestPackageInstalls():Boolean

Returns
Boolean
checkPermission()method 
public static function checkPermission($permissionName:String, $packageName:String):int

Parameters

$permissionName:String
 
$packageName:String

Returns
int
checkSignatures()method 
public static function checkSignatures($package1:String, $package2:String):int

Parameters

$package1:String
 
$package2:String

Returns
int
getAppIcon()method 
public static function getAppIcon($packageName:String):BitmapData

Parameters

$packageName:String

Returns
BitmapData
getInstalledPackages()method 
public static function getInstalledPackages($systemApps:Boolean):Array

Parameters

$systemApps:Boolean

Returns
Array
getPackageInfo()method 
public static function getPackageInfo($packageName:String):PackageInfo

Parameters

$packageName:String

Returns
PackageInfo
init()method 
public static function init():void

installApplicationFromApk()method 
public static function installApplicationFromApk($apk:File):void

Parameters

$apk:File

installApplicationFromGooglePlay()method 
public static function installApplicationFromGooglePlay($packageName:String):void

Parameters

$packageName:String

isInstantApp()method 
public static function isInstantApp($packageName:String):Boolean

Parameters

$packageName:String

Returns
Boolean
requestPackageInstalls()method 
public static function requestPackageInstalls($callback:Function):void

Parameters

$callback:Function

runApplication()method 
public static function runApplication($packageName:String, $extras:Array = null):void

Parameters

$packageName:String
 
$extras:Array (default = null)

uninstallApplication()method 
public static function uninstallApplication($packageName:String):void

Parameters

$packageName:String

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

PERMISSION_DENIEDConstant 
public static const PERMISSION_DENIED:int = -1

PERMISSION_GRANTEDConstant 
public static const PERMISSION_GRANTED:int = 0

SIGNATURE_FIRST_NOT_SIGNEDConstant 
public static const SIGNATURE_FIRST_NOT_SIGNED:int = -1

SIGNATURE_MATCHConstant 
public static const SIGNATURE_MATCH:int = 0

SIGNATURE_NEITHER_SIGNEDConstant 
public static const SIGNATURE_NEITHER_SIGNED:int = 1

SIGNATURE_NO_MATCHConstant 
public static const SIGNATURE_NO_MATCH:int = -3

SIGNATURE_SECOND_NOT_SIGNEDConstant 
public static const SIGNATURE_SECOND_NOT_SIGNED:int = -2

SIGNATURE_UNKNOWN_PACKAGEConstant 
public static const SIGNATURE_UNKNOWN_PACKAGE:int = -4

VERSIONConstant 
public static const VERSION:String = 3.0.0