Asynchronously load a pag file from the specific path.
(String path, PAGFile.LoadListener listener)
| 249 | * Asynchronously load a pag file from the specific path. |
| 250 | */ |
| 251 | public void setPathAsync(String path, PAGFile.LoadListener listener) { |
| 252 | NativeTask.Run(() -> { |
| 253 | setPath(path); |
| 254 | if (listener != null) { |
| 255 | listener.onLoad((PAGFile) pagPlayer.getComposition()); |
| 256 | } |
| 257 | }); |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Returns the current PAGComposition for PAGView to render as content. |
nothing calls this directly
no test coverage detected