| 套件 | org.osmf.utils |
| 類別 | public class OSMFStrings |
| 繼承 | OSMFStrings Object |
| 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
公用屬性
| 屬性 | 定義自 | ||
|---|---|---|---|
![]() | constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | |
| resourceStringFunction : Function [靜態]
Function that the getString methods uses to retrieve a user-facing string. | OSMFStrings | ||
公用方法
| 方法 | 定義自 | ||
|---|---|---|---|
[靜態]
Returns the user-facing string for the given key. | OSMFStrings | ||
![]() |
指出物件是否有已定義的指定屬性。 | Object | |
![]() |
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | |
![]() |
指出指定的屬性是否存在,以及是否可列舉。 | Object | |
![]() |
為迴圈作業設定動態屬性的可用性。 | Object | |
![]() |
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | |
![]() |
會傳回指定之物件的字串形式。 | Object | |
![]() |
會傳回指定之物件的基本值。 | Object | |
屬性詳細資訊
resourceStringFunction | 屬性 |
resourceStringFunction:Function| 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
Function that the getString methods uses to retrieve a user-facing string.
This function takes a String parameter (which is expected to be one of the static consts on this class) and an optional Array of parameters which can be substituted into the String (formatted as {0}, {1}, etc.).
Clients can supply their own getString function to localize the strings. By default, the getString function returns an English-language String.
實作
public static function get resourceStringFunction():Function public static function set resourceStringFunction(value:Function):void方法詳細資訊
getString | () | 方法 |
public static function getString(key:String, params:Array = null):String| 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the user-facing string for the given key. All possible keys are defined as static constants on this class. The parameters are optional substitution variables, formatted as {0}, {1}, etc.
參數
key:String | |
params:Array (default = null) |
String |
Tue Jun 12 2018, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性