Asynchronously load a pag file from the specific path.
(String path, LoadListener listener)
| 61 | * Asynchronously load a pag file from the specific path. |
| 62 | */ |
| 63 | public static void LoadAsync(String path, LoadListener listener) { |
| 64 | NativeTask.Run(() -> { |
| 65 | PAGFile pagFile = Load(path); |
| 66 | if (listener != null) { |
| 67 | listener.onLoad(pagFile); |
| 68 | } |
| 69 | }); |
| 70 | } |
| 71 | |
| 72 | public static PAGFile Load(byte[] bytes) { |
| 73 | return LoadFromBytes(bytes, bytes.length, ""); |