Packageflash.external
Classpublic final class ExtensionInfo
InheritanceExtensionInfo Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 50.0

The ExtensionInfo class provides details about a particular AIR Native Extension.

See also

flash.external.ExtensionContext


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  copyright : String
[read-only] The extension copyright information, as provided in the extension's XML descriptor file.
ExtensionInfo
  description : String
[read-only] The extension description, as provided in the extension's XML descriptor file.
ExtensionInfo
  extensionID : String
[read-only] Returns the identifier for this extension.
ExtensionInfo
  inAppDescriptor : Boolean
[read-only] A Boolean value indicating whether the extension was present in the Application Descriptor file or whether it was loaded and registered dynamically.
ExtensionInfo
  isDynamic : Boolean
[read-only] A Boolean value indicating whether the extension is a 'dynamically loaded' ANE or not.
ExtensionInfo
  isLoaded : Boolean
[read-only] A Boolean value indicating whether the extension has been loaded or not.
ExtensionInfo
  name : String
[read-only] The extension name, as provided in the extension's XML descriptor file.
ExtensionInfo
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  versionNumber : String
[read-only] The extension version number, as provided in the extension's XML descriptor file.
ExtensionInfo
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
A utility method to load in the native library for a dynamic extension.
ExtensionInfo
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property detail
copyrightproperty
copyright:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

The extension copyright information, as provided in the extension's XML descriptor file. This may be null if no copyright info was given.

Implementation
    public function get copyright():String
descriptionproperty 
description:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

The extension description, as provided in the extension's XML descriptor file. This may be null if no descriptionr was given.

Implementation
    public function get description():String
extensionIDproperty 
extensionID:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

Returns the identifier for this extension.

Implementation
    public function get extensionID():String
inAppDescriptorproperty 
inAppDescriptor:Boolean  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

A Boolean value indicating whether the extension was present in the Application Descriptor file or whether it was loaded and registered dynamically. If the extension is listed within the extensions section of the app descriptor, this property returns true, but if the extension was loaded via ExtensionContent.loadExtension then this property returns false.

Implementation
    public function get inAppDescriptor():Boolean
isDynamicproperty 
isDynamic:Boolean  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

A Boolean value indicating whether the extension is a 'dynamically loaded' ANE or not. A 'dynamic' ANE is one that is loaded on demand: this may be one from the Application Descriptor that has the delayLoad attribute set to true, or it may be one that has been loaded in at runtime using ExtensionContent.loadExtension where the path to the ANE folder is provided. This value is false iff the extension was listed in the Application Descriptor without the delayLoad attribute being set to true.

Implementation
    public function get isDynamic():Boolean
isLoadedproperty 
isLoaded:Boolean  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

A Boolean value indicating whether the extension has been loaded or not. Extensions that are listed in the Application Descriptor file using the attribute delayLoad="true" will be registered but not loaded; this flag will stay false until the ExtensionContext.loadExtension method has been called for them.

Implementation
    public function get isLoaded():Boolean
nameproperty 
name:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

The extension name, as provided in the extension's XML descriptor file. This may be null if no name was given.

Implementation
    public function get name():String
versionNumberproperty 
versionNumber:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 50.0

The extension version number, as provided in the extension's XML descriptor file.

Implementation
    public function get versionNumber():String
Method detail
load()method
public function load():Boolean

Language version: ActionScript 3.0
Runtime version: AIR 50.0

A utility method to load in the native library for a dynamic extension. This is the equivalent of calling ExtensionContent.loadExtension with this object's extensionID property.

Returns
Booleantrue if the extension was loaded successfully (or was already loaded)