本演示项目在Unity for Android Build中启用部分华为HMS和AGC服务,对应的类和函数的名称和用法相同。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

36 行
1.3 KiB

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.location
{
public class LocationSettingsRequest_Data : IHmsBaseClass{
public string name => "com.huawei.hms.location.LocationSettingsRequest";
}
public class LocationSettingsRequest :HmsClass<LocationSettingsRequest_Data>
{
public LocationSettingsRequest (): base() { }
public class Builder_Data : IHmsBaseClass{
public string name => "com.huawei.hms.location.LocationSettingsRequest$Builder";
}
public class Builder :HmsClass<Builder_Data>
{
public Builder (): base() { }
public Builder addAllLocationRequests(Collection arg0) {
return Call<Builder>("addAllLocationRequests", arg0);
}
public Builder addLocationRequest(LocationRequest arg0) {
return Call<Builder>("addLocationRequest", arg0);
}
public Builder setAlwaysShow(bool arg0) {
return Call<Builder>("setAlwaysShow", arg0);
}
public Builder setNeedBle(bool arg0) {
return Call<Builder>("setNeedBle", arg0);
}
public LocationSettingsRequest build() {
return Call<LocationSettingsRequest>("build");
}
}
}
}