public void addOnProgressListenerTest() { Debug.Log("UploadTask addOnProgressListenerTest"); byte[] data = new byte[100]; string filename = "addOnProgressListenerTest.data"; StorageReference storageReference = mAGCStorageManagement.getStorageReference(filename); UploadTask task = storageReference.putBytes(data, new FileMetadata()); task.addOnProgressListener(new MyProgressListener("1")) .addOnProgressListener(new Activity(), new MyProgressListener("2")) .addOnProgressListener(new MyExecutor("addOnProgressListenerTest"), new MyProgressListener("3")); MyProgressListener remove = new MyProgressListener("remove"); task.addOnProgressListener(remove); task.removeOnProgressListener(remove); bool isInProgress = task.isInProgress(); Debug.Log("UploadTask addOnProgressListenerTest success, is InProgress status: " + isInProgress); }