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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
 
#nullable restore
using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;
 
namespace Com.Hdl.Hdllinphonesdk.Core.Callback {
 
    // Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']"
    [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", DoNotGenerateAcw=true)]
    public abstract partial class PhoneCallback : global::Java.Lang.Object {
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", typeof (PhoneCallback));
 
        internal static IntPtr 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 _members.JniPeerType.PeerReference.Handle; }
        }
 
        [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; }
        }
 
        protected PhoneCallback (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
        {
        }
 
        // Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/constructor[@name='PhoneCallback' and count(parameter)=0]"
        [Register (".ctor", "()V", "")]
        public unsafe PhoneCallback () : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "()V";
 
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                return;
 
            try {
                var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), null);
                SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance (__id, this, null);
            } finally {
            }
        }
 
        static Delegate cb_callConnected;
#pragma warning disable 0169
        static Delegate GetCallConnectedHandler ()
        {
            if (cb_callConnected == null)
                cb_callConnected = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_CallConnected));
            return cb_callConnected;
        }
 
        static void n_CallConnected (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.CallConnected ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='callConnected' and count(parameter)=0]"
        [Register ("callConnected", "()V", "GetCallConnectedHandler")]
        public virtual unsafe void CallConnected ()
        {
            const string __id = "callConnected.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
        static Delegate cb_callEnd;
#pragma warning disable 0169
        static Delegate GetCallEndHandler ()
        {
            if (cb_callEnd == null)
                cb_callEnd = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_CallEnd));
            return cb_callEnd;
        }
 
        static void n_CallEnd (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.CallEnd ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='callEnd' and count(parameter)=0]"
        [Register ("callEnd", "()V", "GetCallEndHandler")]
        public virtual unsafe void CallEnd ()
        {
            const string __id = "callEnd.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
        static Delegate cb_callReleased;
#pragma warning disable 0169
        static Delegate GetCallReleasedHandler ()
        {
            if (cb_callReleased == null)
                cb_callReleased = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_CallReleased));
            return cb_callReleased;
        }
 
        static void n_CallReleased (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.CallReleased ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='callReleased' and count(parameter)=0]"
        [Register ("callReleased", "()V", "GetCallReleasedHandler")]
        public virtual unsafe void CallReleased ()
        {
            const string __id = "callReleased.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
        static Delegate cb_error_Ljava_lang_String_;
#pragma warning disable 0169
        static Delegate GetError_Ljava_lang_String_Handler ()
        {
            if (cb_error_Ljava_lang_String_ == null)
                cb_error_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_Error_Ljava_lang_String_));
            return cb_error_Ljava_lang_String_;
        }
 
        static void n_Error_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_error)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var error = JNIEnv.GetString (native_error, JniHandleOwnership.DoNotTransfer);
            __this.Error (error);
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='error' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
        [Register ("error", "(Ljava/lang/String;)V", "GetError_Ljava_lang_String_Handler")]
        public virtual unsafe void Error (string error)
        {
            const string __id = "error.(Ljava/lang/String;)V";
            IntPtr native_error = JNIEnv.NewString ((string)error);
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue (native_error);
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef (native_error);
            }
        }
 
        static Delegate cb_outgoingInit;
#pragma warning disable 0169
        static Delegate GetOutgoingInitHandler ()
        {
            if (cb_outgoingInit == null)
                cb_outgoingInit = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_OutgoingInit));
            return cb_outgoingInit;
        }
 
        static void n_OutgoingInit (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.OutgoingInit ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='outgoingInit' and count(parameter)=0]"
        [Register ("outgoingInit", "()V", "GetOutgoingInitHandler")]
        public virtual unsafe void OutgoingInit ()
        {
            const string __id = "outgoingInit.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
    }
 
    [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", DoNotGenerateAcw=true)]
    internal partial class PhoneCallbackInvoker : PhoneCallback {
        public PhoneCallbackInvoker (IntPtr handle, JniHandleOwnership transfer) : base (handle, transfer)
        {
        }
 
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", typeof (PhoneCallbackInvoker));
 
        [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 global::System.Type ThresholdType {
            get { return _members.ManagedPeerType; }
        }
 
    }
}