有人可以向我解释一下他只做了这一行代码吗?
.build();
来自
GoogleApiClient client = new GoogleApiClient.Builder(this)
.enableAutoManage(this /* FragmentActivity */,
this /* OnConnectionFailedListener */)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.setAccountName("users.account.name@gmail.com")
.build();
最佳答案
他使用 builder 完成了创建 GoogleApiClient 对象的过程。图案。然后,您可以使用 GoogleApiClient 完成您需要进行的任何调用
关于java - 代码行解释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41831104/