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

28 行
1012 B

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.location
{
public class ActivityIdentificationData_Data : IHmsBaseClass{
public string name => "com.huawei.hms.location.ActivityIdentificationData";
}
public class ActivityIdentificationData :HmsClass<ActivityIdentificationData_Data>
{
public const int VEHICLE = 100;
public const int BIKE = 101;
public const int FOOT = 102;
public const int STILL = 103;
public const int OTHERS = 104;
public const int TILTING = 105;
public const int WALKING = 107;
public const int RUNNING = 108;
public ActivityIdentificationData (int arg0, int arg1): base(arg0, arg1) { }
public ActivityIdentificationData (): base() { }
public int getPossibility() {
return Call<int>("getPossibility");
}
public int getIdentificationActivity() {
return Call<int>("getIdentificationActivity");
}
}
}