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
Afficher le fichier Open project: CoderLine/alphaTab Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

GetIEVersion() public static méthode

public static GetIEVersion ( ) : float
Résultat float

LoadBinary() public méthode

public LoadBinary ( string path ) : byte[]
path string
Résultat byte[]

LoadBinaryAsync() public méthode

public LoadBinaryAsync ( string path, Action success, Action error ) : void
path string
success Action
error Action
Résultat void