wxr
2024-07-16 548fb8aa23fe31401ba3dae823d31f9a73cc101f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;
 
namespace Com.Hdl.Hdllinphonesdk.Callback {
 
    // Metadata.xml XPath interface reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnLPOpenDoorCallBack']"
    [Register ("com/hdl/hdllinphonesdk/callback/OnLPOpenDoorCallBack", "", "Com.Hdl.Hdllinphonesdk.Callback.IOnLPOpenDoorCallBackInvoker")]
    public partial interface IOnLPOpenDoorCallBack : IJavaObject, IJavaPeerable {
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnLPOpenDoorCallBack']/method[@name='onOpenError' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
        [Register ("onOpenError", "(Ljava/lang/String;)V", "GetOnOpenError_Ljava_lang_String_Handler:Com.Hdl.Hdllinphonesdk.Callback.IOnLPOpenDoorCallBackInvoker, Shared.Droid.HDLLinphone")]
        void OnOpenError (string p0);
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnLPOpenDoorCallBack']/method[@name='onOpenSuccess' and count(parameter)=0]"
        [Register ("onOpenSuccess", "()V", "GetOnOpenSuccessHandler:Com.Hdl.Hdllinphonesdk.Callback.IOnLPOpenDoorCallBackInvoker, Shared.Droid.HDLLinphone")]
        void OnOpenSuccess ();
 
    }
 
    [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/callback/OnLPOpenDoorCallBack", DoNotGenerateAcw=true)]
    internal partial class IOnLPOpenDoorCallBackInvoker : global::Java.Lang.Object, IOnLPOpenDoorCallBack {
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/callback/OnLPOpenDoorCallBack", typeof (IOnLPOpenDoorCallBackInvoker));
 
        static IntPtr java_class_ref {
            get { return _members.JniPeerType.PeerReference.Handle; }
        }
 
        [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
        [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
        public override global::Java.Interop.JniPeerMembers JniPeerMembers {
            get { return _members; }
        }
 
        [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
        [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
        protected override IntPtr ThresholdClass {
            get { return class_ref; }
        }
 
        [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
        [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
        protected override global::System.Type ThresholdType {
            get { return _members.ManagedPeerType; }
        }
 
        IntPtr class_ref;
 
        public static IOnLPOpenDoorCallBack GetObject (IntPtr handle, JniHandleOwnership transfer)
        {
            return global::Java.Lang.Object.GetObject<IOnLPOpenDoorCallBack> (handle, transfer);
        }
 
        static IntPtr Validate (IntPtr handle)
        {
            if (!JNIEnv.IsInstanceOf (handle, java_class_ref))
                throw new InvalidCastException ($"Unable to convert instance of type '{JNIEnv.GetClassNameFromInstance (handle)}' to type 'com.hdl.hdllinphonesdk.callback.OnLPOpenDoorCallBack'.");
            return handle;
        }
 
        protected override void Dispose (bool disposing)
        {
            if (this.class_ref != IntPtr.Zero)
                JNIEnv.DeleteGlobalRef (this.class_ref);
            this.class_ref = IntPtr.Zero;
            base.Dispose (disposing);
        }
 
        public IOnLPOpenDoorCallBackInvoker (IntPtr handle, JniHandleOwnership transfer) : base (Validate (handle), transfer)
        {
            IntPtr local_ref = JNIEnv.GetObjectClass (((global::Java.Lang.Object) this).Handle);
            this.class_ref = JNIEnv.NewGlobalRef (local_ref);
            JNIEnv.DeleteLocalRef (local_ref);
        }
 
        static Delegate cb_onOpenError_Ljava_lang_String_;
#pragma warning disable 0169
        static Delegate GetOnOpenError_Ljava_lang_String_Handler ()
        {
            if (cb_onOpenError_Ljava_lang_String_ == null)
                cb_onOpenError_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_OnOpenError_Ljava_lang_String_));
            return cb_onOpenError_Ljava_lang_String_;
        }
 
        static void n_OnOpenError_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnLPOpenDoorCallBack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var p0 = JNIEnv.GetString (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.OnOpenError (p0);
        }
#pragma warning restore 0169
 
        IntPtr id_onOpenError_Ljava_lang_String_;
        public unsafe void OnOpenError (string p0)
        {
            if (id_onOpenError_Ljava_lang_String_ == IntPtr.Zero)
                id_onOpenError_Ljava_lang_String_ = JNIEnv.GetMethodID (class_ref, "onOpenError", "(Ljava/lang/String;)V");
            IntPtr native_p0 = JNIEnv.NewString ((string)p0);
            JValue* __args = stackalloc JValue [1];
            __args [0] = new JValue (native_p0);
            JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_onOpenError_Ljava_lang_String_, __args);
            JNIEnv.DeleteLocalRef (native_p0);
        }
 
        static Delegate cb_onOpenSuccess;
#pragma warning disable 0169
        static Delegate GetOnOpenSuccessHandler ()
        {
            if (cb_onOpenSuccess == null)
                cb_onOpenSuccess = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_OnOpenSuccess));
            return cb_onOpenSuccess;
        }
 
        static void n_OnOpenSuccess (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnLPOpenDoorCallBack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.OnOpenSuccess ();
        }
#pragma warning restore 0169
 
        IntPtr id_onOpenSuccess;
        public unsafe void OnOpenSuccess ()
        {
            if (id_onOpenSuccess == IntPtr.Zero)
                id_onOpenSuccess = JNIEnv.GetMethodID (class_ref, "onOpenSuccess", "()V");
            JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_onOpenSuccess);
        }
 
    }
}