Packagecom.myflashlab.air.extensions.firebase.performance
Classpublic class Perf
InheritancePerf Inheritance Object

The Firebase Performance API.



Public Properties
 PropertyDefined By
  collectionEnabled : Boolean
[static] Determines whether performance monitoring is enabled or disabled.
Perf
Public Methods
 MethodDefined By
  
[static] When you don't have an active 'HttpMetric' or 'PerfTrace' object instances in your app, you may call this method to cleanup the left over variables in native code.
Perf
  
init():void
[static] initializes the Performance API.
Perf
  
newHttpMetric($url:String, $httpMethod:String):HttpMetric
[static] Creates a HttpMetric object for collecting network performance data for one request/response
Perf
  
newTrace($traceName:String):PerfTrace
[static] Creates a Trace object with given name.
Perf
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.firebase.performance
[static]
Perf
  VERSION : String = 9.10.0
[static]
Perf
Property Detail
collectionEnabledproperty
collectionEnabled:Boolean

Determines whether performance monitoring is enabled or disabled. This respects the Firebase Performance specific values first, and if these aren't set, uses the Firebase wide data collection switch.


Implementation
    public static function get collectionEnabled():Boolean
    public static function set collectionEnabled(value:Boolean):void
Method Detail
cleanAllReferences()method
public static function cleanAllReferences():void

When you don't have an active 'HttpMetric' or 'PerfTrace' object instances in your app, you may call this method to cleanup the left over variables in native code.

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

initializes the Performance API.

newHttpMetric()method 
public static function newHttpMetric($url:String, $httpMethod:String):HttpMetric

Creates a HttpMetric object for collecting network performance data for one request/response

Parameters

$url:String — a valid URL object
 
$httpMethod:String — One of the values GET, PUT, POST, DELETE, HEAD, PATCH, OPTIONS, TRACE, or CONNECT

Returns
HttpMetric — the new HttpMetric object.
newTrace()method 
public static function newTrace($traceName:String):PerfTrace

Creates a Trace object with given name.

Parameters

$traceName:String — name of the trace, requires no leading or trailing whitespace, no leading underscore '_' character

Returns
PerfTrace — the new Trace object.
Constant Detail
EXTENSION_IDConstant
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.firebase.performance

VERSIONConstant 
public static const VERSION:String = 9.10.0