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

30 行
988 B

using UnityEngine;
using System.Collections.Generic;
using HuaweiService;
namespace HuaweiService.Auth
{
public class Parcelable_Data : IHmsBaseClass{
public string name => "android.os.Parcelable";
}
public class Parcelable :HmsClass<Parcelable_Data>
{
public const int CONTENTS_FILE_DESCRIPTOR = 1;
public const int PARCELABLE_WRITE_RETURN_VALUE = 1;
public Parcelable (): base() { }
public class Creator_Data : IHmsBaseClass{
public string name => "android.os.Parcelable$Creator";
}
public class Creator :HmsClass<Creator_Data>
{
public Creator (): base() { }
public AndroidJavaObject createFromParcel(Parcel arg0) {
return Call<AndroidJavaObject>("createFromParcel", arg0);
}
public AndroidJavaObject[] newArray(int arg0) {
return Call<AndroidJavaObject[]>("newArray", arg0);
}
}
}
}