Package | com.myflashlab.air.extensions.dependency |
Class | public class OverrideAir |
Inheritance | OverrideAir 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).
Property | Defined By | ||
---|---|---|---|
isSupported : Boolean [static] [read-only]
Returns true if you are on Android/iOS. | OverrideAir | ||
os : String [static] [read-only] | OverrideAir |
Method | Defined 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 |
Constant | Defined 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 |
isSupported | property |
isSupported:Boolean
[read-only] Returns true if you are on Android/iOS. Otherwise, it returns false.
public static function get isSupported():Boolean
os | property |
os:String
[read-only] public static function get os():String
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 |
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 |
ANDROID | Constant |
public static const ANDROID:String = android
EXTENSION_ID | Constant |
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.dependency.overrideAir
IOS | Constant |
public static const IOS:String = ios
IOS_SIM | Constant |
public static const IOS_SIM:String = iosSimulator
VERSION | Constant |
public static const VERSION:String = 6.1.11