| Package | com.myflashlab.air.extensions.firebase.performance |
| Class | public class Perf |
| Inheritance | Perf Object |
| Property | Defined By | ||
|---|---|---|---|
| collectionEnabled : Boolean [static]
Determines whether performance monitoring is enabled or disabled. | Perf | ||
| Method | Defined By | ||
|---|---|---|---|
cleanAllReferences():void [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 | ||
[static]
Creates a Trace object with given name. | Perf | ||
| Constant | Defined By | ||
|---|---|---|---|
| EXTENSION_ID : String = com.myflashlab.air.extensions.firebase.performance [static] | Perf | ||
| VERSION : String = 9.10.0 [static] | Perf | ||
| collectionEnabled | property |
collectionEnabled:BooleanDetermines 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.
public static function get collectionEnabled():Boolean public static function set collectionEnabled(value:Boolean):void| cleanAllReferences | () | method |
public static function cleanAllReferences():voidWhen 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():voidinitializes the Performance API.
| newHttpMetric | () | method |
public static function newHttpMetric($url:String, $httpMethod:String):HttpMetricCreates 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
|
HttpMetric — the new HttpMetric object.
|
| newTrace | () | method |
public static function newTrace($traceName:String):PerfTraceCreates a Trace object with given name.
Parameters
$traceName:String — name of the trace, requires no leading or trailing whitespace, no leading underscore '_' character
|
PerfTrace — the new Trace object.
|
| EXTENSION_ID | Constant |
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.firebase.performance| VERSION | Constant |
public static const VERSION:String = 9.10.0