我有这个Java代码,SignInResultHandlerSignInError中有CaptureApiError属性:
[global::Android.Runtime.Register ("com/janrain/android/Jump", DoNotGenerateAcw=true)] public partial class Jump : global::Java.Lang.Object {
[global::Android.Runtime.Register("com/janrain/android/Jump$SignInResultHandler$SignInError", DoNotGenerateAcw=true)]
public partial class SignInResultHandlerSignInError : global::Java.Lang.Object {
static IntPtr captureApiError_jfieldId;
[Register ("captureApiError")]
public global::Com.Janrain.Android.Capture.CaptureApiError CaptureApiError { get { ... } set { ... } }
如何将属性的名称更改为其他名称?
这是我尝试放在Metadata.xml中的内容:
<attr path="/api/package[@name='com.janrain.android']/class[@name='Jump.SignInResultHandlerSignInError']/property[@name='CaptureApiError']" name="managedName">CaptureApiError1</attr>
我不确定是否xpath
/属性[@name = '']“
对MetaData.xml有效。