MCPcopy Create free account
hub / github.com/Tencent/libpag / LoadAsync

Method LoadAsync

android/libpag/src/main/java/org/libpag/PAGFile.java:63–70  ·  view source on GitHub ↗

Asynchronously load a pag file from the specific path.

(String path, LoadListener listener)

Source from the content-addressed store, hash-verified

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, "");

Callers

nothing calls this directly

Calls 3

RunMethod · 0.95
LoadMethod · 0.95
onLoadMethod · 0.80

Tested by

no test coverage detected