Packagecom.myflashlab.air.extensions.dependency
Classpublic class OverrideAir
InheritanceOverrideAir Inheritance Object

Use the enableDebugger method of this ANE to enable ANE debugger in your build. When you do that, you will receive a lot of debug information from how MyFlashLabs ANEs are working which can be used while debugging your app; That said, it is highly recommended to disable the debugger by simply removing the command or passing null as the method parameter when you are building your app for production.

Since V4.0.0 of this ANE, we have included a kind of internal ANE debugger into this dependency and when you enable it, you will not only see debugging information in your AIR IDE debugger window but also you will see them in the AndroidStudio logcat and xCode device log window.

Since V5.1.2 we have added a property "OverrideAir.isSupported" so you can call and see if Myflashlabs ANEs are supported on the current running environment or not. This is useful when you are testing your project in an emulator. Use this property and if it returns true, you can initialize other Myflashlabs ANEs. If it returns false, it means you are running your project on an emulator (Anything other than Android/iOS environment).



Public Properties
 PropertyDefined By
  isSupported : Boolean
[static] [read-only] Returns true if you are on Android/iOS.
OverrideAir
  os : String
[static] [read-only]
OverrideAir
Public Methods
 MethodDefined By
  
applyToAneLab($qualifiedClassName:String):void
[static] Do not try to initialize this ANE! Other ANEs will do that when they need to and they will use it internally.
OverrideAir
  
applyToOverrides($aneContext:ExtensionContext):void
[static] Do not try to initialize this ANE! Other ANEs will do that when they need to and they will use it internally.
OverrideAir
  
enableDebugger($func:Function):void
[static] Call this method and pass in a delegate function to receive debug level information from MyFlashLabs ANEs.
OverrideAir
  
initForInternalUse($aneContext:ExtensionContext):void
[static] Deprecated, please use applyToOverrides instead.
OverrideAir
Public Constants
 ConstantDefined By
  ANDROID : String = android
[static]
OverrideAir
  EXTENSION_ID : String = com.myflashlab.air.extensions.dependency.overrideAir
[static]
OverrideAir
  IOS : String = ios
[static]
OverrideAir
  IOS_SIM : String = iosSimulator
[static]
OverrideAir
  VERSION : String = 6.1.11
[static]
OverrideAir
Property Detail
isSupportedproperty
isSupported:Boolean  [read-only]

Returns true if you are on Android/iOS. Otherwise, it returns false.


Implementation
    public static function get isSupported():Boolean
osproperty 
os:String  [read-only]


Implementation
    public static function get os():String
Method Detail
applyToAneLab()method
public static function applyToAneLab($qualifiedClassName:String):void

Do not try to initialize this ANE! Other ANEs will do that when they need to and they will use it internally.

If you wish to enable the debugger though, simply use the enableDebugger() method directly.

Parameters

$qualifiedClassName:String

applyToOverrides()method 
public static function applyToOverrides($aneContext:ExtensionContext):void

Do not try to initialize this ANE! Other ANEs will do that when they need to and they will use it internally.

If you wish to enable the debugger though, simply use the enableDebugger() method directly.

Parameters

$aneContext:ExtensionContext

enableDebugger()method 
public static function enableDebugger($func:Function):void

Call this method and pass in a delegate function to receive debug level information from MyFlashLabs ANEs. To disable the delegate, simply call this method again but pass in null as the argument. like this: OverrideAir.enableDebugger(null);

NOTE: It is highly recommended to disable the debugger when building for production as it adds unnecessary work on your project. Use it for debugging reasons only and remove it when building for production.

Parameters

$func:Function


Example
The following example will show you how you should setup the delegate function so you can receive the debugging information.
        import com.myflashlab.air.extensions.dependency.OverrideAir;
             OverrideAir.enableDebugger(myDebuggerDelegate);
             function myDebuggerDelegate($ane:String, $class:String, $msg:String):void
        {
             trace("------------------");
             trace("$ane = " + $ane);
             trace("$class = " + $class);
             trace("$msg = " + $msg);
             trace("------------------");
         }
     
initForInternalUse()method 
public static function initForInternalUse($aneContext:ExtensionContext):void

Deprecated, please use applyToOverrides instead.

Do not try to initialize this ANE! Other ANEs will do that when they need to and they will use it internally.

If you wish to enable the debugger though, simply use the enableDebugger() method directly.

Parameters

$aneContext:ExtensionContext

Constant Detail
ANDROIDConstant
public static const ANDROID:String = android

EXTENSION_IDConstant 
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.dependency.overrideAir

IOSConstant 
public static const IOS:String = ios

IOS_SIMConstant 
public static const IOS_SIM:String = iosSimulator

VERSIONConstant 
public static const VERSION:String = 6.1.11