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

21 行
805 B

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.location
{
public class GeofenceErrorCodes_Data : IHmsBaseClass{
public string name => "com.huawei.hms.location.GeofenceErrorCodes";
}
public class GeofenceErrorCodes :HmsClass<GeofenceErrorCodes_Data>
{
public const int GEOFENCE_UNAVAILABLE = 10200;
public const int GEOFENCE_NUMBER_OVER_LIMIT = 10201;
public const int GEOFENCE_PENDINGINTENT_OVER_LIMIT = 10202;
public const int GEOFENCE_INSUFFICIENT_PERMISSION = 10204;
public const int GEOFENCE_REQUEST_TOO_OFTEN = 10205;
public GeofenceErrorCodes (): base() { }
public static string getErrorMessage(int arg0) {
return CallStatic<string>("getErrorMessage", arg0);
}
}
}