本演示项目在Unity for Android Build中启用部分华为HMS和AGC服务,对应的类和函数的名称和用法相同。
您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
HuaweiService.cloudfunctions
Scenario: Get cloud parameters获取云端参数
Description |
Api |
Reference |
Sets the cloud function to be called using the NOPATHHTTP trigger identifier of the function.
通过函数的NOPATHHTTP触发器的URL设置调用哪个云函数 |
AGConnectFunction.wrap(String httpTriggerURI) |
agconnectfunction |
Scenario: Call functions调用函数
Description |
Api |
Reference |
Calls a function without input parameters.
调用没有入参的函数 |
FunctionCallable.call() |
functioncallable |
Calls a function with input parameters.
调用有入参的函数 |
FunctionCallable.call(T object) |
functioncallable |
Obtains the return value after a function is executed. The return value is of the string type.
获取函数执行后的返回值 |
FunctionResult.getValue() |
functionresult |
Obtains the object returned after a function is executed.
获取函数执行后返回的对象 |
FunctionResult.getValue(Class valueClass) |
functionresult |
Scenario: Function timeout函数超时时间
Description |
Api |
Reference |
Obtains the timeout interval of a function.
获取函数的超时时间 |
getTimeout() |
functioncallable |
Sets the timeout interval of a function.
设置函数的超时时间 |
setTimeout(long timeout, TimeUnit units) |
functioncallable |
Creates a FunctionCallable instance and with a specified timeout interval.创建FunctionCallable实例,使用指定的超时时间 |
clone(long timeout, TimeUnit units) |
functioncallable |