mClient.invokeApi wrong constructor in Azure-mobile-services android SDK and is not compiling

試著忘記壹切 提交于 2019-12-23 04:33:48

问题


Here is the snippet from documentation azure

ListenableFuture<MarkAllResult> result = mClient.invokeApi( "completeAll2", MarkAllResult.class ); 

Futures.addCallback(result, new FutureCallback<MarkAllResult>() {
    @Override
    public void onFailure(Throwable exc) {
        createAndShowDialog((Exception) exc, "Error");
    }

    @Override
    public void onSuccess(MarkAllResult result) {
        createAndShowDialog(result.getCount() + " item(s) marked as complete.", "Completed Items");
        refreshItemsFromTable();    
    }
});

}

This code can not be compiled,because there is no available Contructor for mClient.invokeApi(String,Class).

I am new to azure.Can you please point out what went wrong? Or is there a problem with Android Azure SDK(V1.1.5)?


回答1:


This bug is now fixed in Azure Mobile Android SDK V2.0.Got an official mail from Azure.



来源:https://stackoverflow.com/questions/26924955/mclient-invokeapi-wrong-constructor-in-azure-mobile-services-android-sdk-and-is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!