How to make a result for com.huawei.hmf.tasks?

Viewed 200

In com.google.android.gms.tasks.Tasks there is a forResult method which returns a specific result for the task, how related this method to Huawei's tasks?

// return a null result task
Task<?> methodCallTask;
methodCallTask = Tasks.forResult(null);
2 Answers

Huawei have com.huawei.hmf.tasks.Tasks.fromResult(null);Similar to google.

Related