Package | com.myflashlab.air.extensions.pm |
Class | public class PackageManager |
Inheritance | PackageManager Object |
Property | Defined By | ||
---|---|---|---|
USE_AIR_PREFIX_FOR_ANDROID : Boolean = true [static] | PackageManager |
Method | Defined By | ||
---|---|---|---|
PackageManager | |||
canRequestPackageInstalls():Boolean [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 | ||
installApplicationFromApk($apk:File):void [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 |
Constant | Defined 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 |
USE_AIR_PREFIX_FOR_ANDROID | property |
public static var USE_AIR_PREFIX_FOR_ANDROID:Boolean = true
PackageManager | () | Constructor |
public function PackageManager()
canRequestPackageInstalls | () | method |
public static function canRequestPackageInstalls():Boolean
ReturnsBoolean |
checkPermission | () | method |
public static function checkPermission($permissionName:String, $packageName:String):int
Parameters
$permissionName:String | |
$packageName:String |
int |
checkSignatures | () | method |
public static function checkSignatures($package1:String, $package2:String):int
Parameters
$package1:String | |
$package2:String |
int |
getAppIcon | () | method |
public static function getAppIcon($packageName:String):BitmapData
Parameters
$packageName:String |
BitmapData |
getInstalledPackages | () | method |
public static function getInstalledPackages($systemApps:Boolean):Array
Parameters
$systemApps:Boolean |
Array |
getPackageInfo | () | method |
public static function getPackageInfo($packageName:String):PackageInfo
Parameters
$packageName:String |
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 |
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 |
EXTENSION_ID | Constant |
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.packageManager
PERMISSION_DENIED | Constant |
public static const PERMISSION_DENIED:int = -1
PERMISSION_GRANTED | Constant |
public static const PERMISSION_GRANTED:int = 0
SIGNATURE_FIRST_NOT_SIGNED | Constant |
public static const SIGNATURE_FIRST_NOT_SIGNED:int = -1
SIGNATURE_MATCH | Constant |
public static const SIGNATURE_MATCH:int = 0
SIGNATURE_NEITHER_SIGNED | Constant |
public static const SIGNATURE_NEITHER_SIGNED:int = 1
SIGNATURE_NO_MATCH | Constant |
public static const SIGNATURE_NO_MATCH:int = -3
SIGNATURE_SECOND_NOT_SIGNED | Constant |
public static const SIGNATURE_SECOND_NOT_SIGNED:int = -2
SIGNATURE_UNKNOWN_PACKAGE | Constant |
public static const SIGNATURE_UNKNOWN_PACKAGE:int = -4
VERSION | Constant |
public static const VERSION:String = 3.0.0