An internal class that encapsulate platform-specific code. We usually want platform-specific code to be located in a backend, but it may happen that sometimes creating a backend interface is overkill. That's where this comes handy.

Static methods

staticreadStringFromAsset(assetPath:String):String

Read a string from an asset file, synchronously. Warning: not available on every targets

Returns:

String

staticreadBytesFromAsset(assetPath:String):Bytes

Read bytes from an asset file, synchronously. Warning: not available on every targets

Returns:

String

staticgetAssetsPath():String

Returns assets paths on disk (if any) Warning: not available on every targets

Returns:

String

staticgetRtti<T>(c:Class<T>):Classdef

staticinlineresolveElectron():Null<Dynamic>

Available on clay web

staticnodeRequire(module:String):Null<Dynamic>

Available on clay web

staticelectronRemote():Null<Dynamic>

Available on clay web

staticquit():Void

staticnodeRequire(module:String):Dynamic

Available on headless