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

22 行
930 B

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService
{
public class LocationManager_Data : IHmsBaseClass{
public string name => "android.location.LocationManager";
}
public class LocationManager :HmsClass<LocationManager_Data>
{
public const string GPS_PROVIDER = "gps";
public const string KEY_LOCATION_CHANGED = "location";
public const string KEY_PROVIDER_ENABLED = "providerEnabled";
public const string KEY_PROXIMITY_ENTERING = "entering";
public const string KEY_STATUS_CHANGED = "status";
public const string MODE_CHANGED_ACTION = "android.location.MODE_CHANGED";
public const string NETWORK_PROVIDER = "network";
public const string PASSIVE_PROVIDER = "passive";
public const string PROVIDERS_CHANGED_ACTION = "android.location.PROVIDERS_CHANGED";
public LocationManager (): base() { }
}
}