適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
org.osmf.net.metrics 

MetricRepository  - AS3 OSMF

套件org.osmf.net.metrics
類別public class MetricRepository
繼承MetricRepository Inheritance Object

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

MetricRepository is responsible with storing metrics. It responds to requests containing the metric type and its parameters. The MetricRepository will make use of a MetricFactory to create new metrics.

相關 API 元素

org.osmf.net.abr.MetricFactory


公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
  metricFactory : MetricFactory
[唯讀] The MetricFactory object to be used for creating new metrics.
MetricRepository
公用方法
 方法定義自
  
Constructor.
MetricRepository
  
Returns a reference to a MetricBase of the specified type, with the specified arguments.
MetricRepository
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

metricFactory

屬性
metricFactory:MetricFactory  [唯讀]

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

The MetricFactory object to be used for creating new metrics.



實作
    public function get metricFactory():MetricFactory
建構函式詳細資料

MetricRepository

()建構函式
public function MetricRepository(metricFactory:MetricFactory)

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

Constructor. Initializes the dictionary meant to hold the metrics.

參數
metricFactory:MetricFactory — The MetricFactory object to be used for creating new metrics.
方法詳細資訊

getMetric

()方法
public function getMetric(type:String, ... args):MetricBase

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

Returns a reference to a MetricBase of the specified type, with the specified arguments.

參數

type:String — The type of the metric
 
... args — The arguments to be passed to the metric's constructor

傳回值
MetricBase




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。