public void addOnSuccessListenerTest() { Debug.Log("UploadTask addOnSuccessListenerTest"); byte[] data = new byte[10]; string filename = "addOnSuccessListenerTest.data"; StorageReference storageReference = mAGCStorageManagement.getStorageReference(filename); UploadTask task = storageReference.putBytes(data, new FileMetadata()); task.addOnSuccessListener(new MySuccessListener("NormalListener")) .addOnSuccessListener(new Activity(), new MySuccessListener("ActivityListener")) .addOnSuccessListener(new MyExecutor("ExecutorListener"), new MySuccessListener("ExecutorListener")); MySuccessListener remove = new MySuccessListener("remove"); task.addOnSuccessListener(remove); task.removeOnSuccessListener(remove); Debug.Log("task.isSuccessful status: " + task.isSuccessful()); Debug.Log("UploadTask addOnSuccessListenerTest success"); }