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

38 行
1.3 KiB

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.location
{
public class LocationSettingsStates_Data : IHmsBaseClass{
public string name => "com.huawei.hms.location.LocationSettingsStates";
}
public class LocationSettingsStates :HmsClass<LocationSettingsStates_Data>
{
public LocationSettingsStates (): base() { }
public LocationSettingsStates (bool arg0, bool arg1, bool arg2, bool arg3, bool arg4, bool arg5): base(arg0, arg1, arg2, arg3, arg4, arg5) { }
public bool isBlePresent() {
return Call<bool>("isBlePresent");
}
public bool isBleUsable() {
return Call<bool>("isBleUsable");
}
public bool isGpsPresent() {
return Call<bool>("isGpsPresent");
}
public bool isGpsUsable() {
return Call<bool>("isGpsUsable");
}
public bool isLocationPresent() {
return Call<bool>("isLocationPresent");
}
public bool isLocationUsable() {
return Call<bool>("isLocationUsable");
}
public bool isNetworkLocationPresent() {
return Call<bool>("isNetworkLocationPresent");
}
public bool isNetworkLocationUsable() {
return Call<bool>("isNetworkLocationUsable");
}
}
}