C# Class AlphaTab.Platform.JavaScript.JsFileLoader

This is a fileloader implementation for JavaScript. It uses a ajax request in case of modern browsers like Firefox or Chrome. For IE a VBScript is used to load a binary stream.
Inheritance: SharpKit.Html.HtmlContext, IFileLoader
Datei anzeigen Open project: CoderLine/alphaTab Class Usage Examples

Public Methods

Method Description
GetIEVersion ( ) : float
LoadBinary ( string path ) : byte[]
LoadBinaryAsync ( string path, Action success, Action error ) : void

Private Methods

Method Description
GetBytesFromString ( string s ) : byte[]
NewUint8Array ( object arrayBuffer ) : byte[]
VbAjaxLoader ( string method, string path ) : dynamic

Method Details

GetIEVersion() public static method

public static GetIEVersion ( ) : float
return float

LoadBinary() public method

public LoadBinary ( string path ) : byte[]
path string
return byte[]

LoadBinaryAsync() public method

public LoadBinaryAsync ( string path, Action success, Action error ) : void
path string
success Action
error Action
return void