wxr
2024-08-27 83d5ada866a598ee868d3e23624d104d1027db29
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
//------------------------------------------------------------------------------
// <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.Service {
 
    // Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']"
    [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService", DoNotGenerateAcw=true)]
    public partial class HDLLinphoneService : global::Android.App.Service {
        // Metadata.xml XPath field reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/field[@name='NOTIFICATION_ID']"
        [Register ("NOTIFICATION_ID")]
        public const int NotificationId = (int) 2;
 
        // Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService.LinphoneBinder']"
        [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService$LinphoneBinder", DoNotGenerateAcw=true)]
        public partial class LinphoneBinder : global::Android.OS.Binder {
            static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService$LinphoneBinder", typeof (LinphoneBinder));
 
            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 LinphoneBinder (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
            {
            }
 
            // Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService.LinphoneBinder']/constructor[@name='HDLLinphoneService.LinphoneBinder' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.core.service.HDLLinphoneService']]"
            [Register (".ctor", "(Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;)V", "")]
            public unsafe LinphoneBinder (global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService __self) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                string __id = "(L" + global::Android.Runtime.JNIEnv.GetJniName (GetType ().DeclaringType) + ";)V";
 
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                    return;
 
                try {
                    JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue ((__self == null) ? IntPtr.Zero : ((global::Java.Lang.Object) __self).Handle);
                    var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), __args);
                    SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
                    _members.InstanceMethods.FinishCreateInstance (__id, this, __args);
                } finally {
                    global::System.GC.KeepAlive (__self);
                }
            }
 
            static Delegate cb_getService;
#pragma warning disable 0169
            static Delegate GetGetServiceHandler ()
            {
                if (cb_getService == null)
                    cb_getService = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_L (n_GetService));
                return cb_getService;
            }
 
            static IntPtr n_GetService (IntPtr jnienv, IntPtr native__this)
            {
                var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService.LinphoneBinder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                return JNIEnv.ToLocalJniHandle (__this.Service);
            }
#pragma warning restore 0169
 
            public virtual unsafe global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService Service {
                // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService.LinphoneBinder']/method[@name='getService' and count(parameter)=0]"
                [Register ("getService", "()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;", "GetGetServiceHandler")]
                get {
                    const string __id = "getService.()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;";
                    try {
                        var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, null);
                        return global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService> (__rm.Handle, JniHandleOwnership.TransferLocalRef);
                    } finally {
                    }
                }
            }
 
        }
 
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService", typeof (HDLLinphoneService));
 
        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 HDLLinphoneService (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
        {
        }
 
        // Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/constructor[@name='HDLLinphoneService' and count(parameter)=0]"
        [Register (".ctor", "()V", "")]
        public unsafe HDLLinphoneService () : 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 {
            }
        }
 
        public static unsafe global::Java.Lang.Boolean CoreIsNotNull {
            // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='getCoreIsNotNull' and count(parameter)=0]"
            [Register ("getCoreIsNotNull", "()Ljava/lang/Boolean;", "")]
            get {
                const string __id = "getCoreIsNotNull.()Ljava/lang/Boolean;";
                try {
                    var __rm = _members.StaticMethods.InvokeObjectMethod (__id, null);
                    return global::Java.Lang.Object.GetObject<global::Java.Lang.Boolean> (__rm.Handle, JniHandleOwnership.TransferLocalRef);
                } finally {
                }
            }
        }
 
        public static unsafe global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService Instance {
            // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='getInstance' and count(parameter)=0]"
            [Register ("getInstance", "()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;", "")]
            get {
                const string __id = "getInstance.()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;";
                try {
                    var __rm = _members.StaticMethods.InvokeObjectMethod (__id, null);
                    return global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService> (__rm.Handle, JniHandleOwnership.TransferLocalRef);
                } finally {
                }
            }
        }
 
        public static unsafe bool IsReady {
            // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='isReady' and count(parameter)=0]"
            [Register ("isReady", "()Z", "")]
            get {
                const string __id = "isReady.()Z";
                try {
                    var __rm = _members.StaticMethods.InvokeBooleanMethod (__id, null);
                    return __rm;
                } finally {
                }
            }
        }
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='addPhoneCallback' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.core.callback.PhoneCallback']]"
        [Register ("addPhoneCallback", "(Lcom/hdl/hdllinphonesdk/core/callback/PhoneCallback;)V", "")]
        public static unsafe void AddPhoneCallback (global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback phoneCallback)
        {
            const string __id = "addPhoneCallback.(Lcom/hdl/hdllinphonesdk/core/callback/PhoneCallback;)V";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue ((phoneCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object) phoneCallback).Handle);
                _members.StaticMethods.InvokeVoidMethod (__id, __args);
            } finally {
                global::System.GC.KeepAlive (phoneCallback);
            }
        }
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='addRegistrationCallback' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.core.callback.RegistrationCallback']]"
        [Register ("addRegistrationCallback", "(Lcom/hdl/hdllinphonesdk/core/callback/RegistrationCallback;)V", "")]
        public static unsafe void AddRegistrationCallback (global::Com.Hdl.Hdllinphonesdk.Core.Callback.RegistrationCallback registrationCallback)
        {
            const string __id = "addRegistrationCallback.(Lcom/hdl/hdllinphonesdk/core/callback/RegistrationCallback;)V";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue ((registrationCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object) registrationCallback).Handle);
                _members.StaticMethods.InvokeVoidMethod (__id, __args);
            } finally {
                global::System.GC.KeepAlive (registrationCallback);
            }
        }
 
        static Delegate cb_enableDeviceRingtone_Z;
#pragma warning disable 0169
        static Delegate GetEnableDeviceRingtone_ZHandler ()
        {
            if (cb_enableDeviceRingtone_Z == null)
                cb_enableDeviceRingtone_Z = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPZ_V (n_EnableDeviceRingtone_Z));
            return cb_enableDeviceRingtone_Z;
        }
 
        static void n_EnableDeviceRingtone_Z (IntPtr jnienv, IntPtr native__this, bool use)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.EnableDeviceRingtone (use);
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='enableDeviceRingtone' and count(parameter)=1 and parameter[1][@type='boolean']]"
        [Register ("enableDeviceRingtone", "(Z)V", "GetEnableDeviceRingtone_ZHandler")]
        public virtual unsafe void EnableDeviceRingtone (bool use)
        {
            const string __id = "enableDeviceRingtone.(Z)V";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue (use);
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
            } finally {
            }
        }
 
        static Delegate cb_initCore;
#pragma warning disable 0169
        static Delegate GetInitCoreHandler ()
        {
            if (cb_initCore == null)
                cb_initCore = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_InitCore));
            return cb_initCore;
        }
 
        static void n_InitCore (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.InitCore ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='initCore' and count(parameter)=0]"
        [Register ("initCore", "()V", "GetInitCoreHandler")]
        public virtual unsafe void InitCore ()
        {
            const string __id = "initCore.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
        static Delegate cb_onBind_Landroid_content_Intent_;
#pragma warning disable 0169
        static Delegate GetOnBind_Landroid_content_Intent_Handler ()
        {
            if (cb_onBind_Landroid_content_Intent_ == null)
                cb_onBind_Landroid_content_Intent_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_L (n_OnBind_Landroid_content_Intent_));
            return cb_onBind_Landroid_content_Intent_;
        }
 
        static IntPtr n_OnBind_Landroid_content_Intent_ (IntPtr jnienv, IntPtr native__this, IntPtr native_intent)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var intent = global::Java.Lang.Object.GetObject<global::Android.Content.Intent> (native_intent, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle (__this.OnBind (intent));
            return __ret;
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='onBind' and count(parameter)=1 and parameter[1][@type='android.content.Intent']]"
        [Register ("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler")]
        public override unsafe global::Android.OS.IBinder OnBind (global::Android.Content.Intent intent)
        {
            const string __id = "onBind.(Landroid/content/Intent;)Landroid/os/IBinder;";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue ((intent == null) ? IntPtr.Zero : ((global::Java.Lang.Object) intent).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, __args);
                return global::Java.Lang.Object.GetObject<global::Android.OS.IBinder> (__rm.Handle, JniHandleOwnership.TransferLocalRef);
            } finally {
                global::System.GC.KeepAlive (intent);
            }
        }
 
        static Delegate cb_pddd;
#pragma warning disable 0169
        static Delegate GetPdddHandler ()
        {
            if (cb_pddd == null)
                cb_pddd = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_Pddd));
            return cb_pddd;
        }
 
        static void n_Pddd (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.Pddd ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='pddd' and count(parameter)=0]"
        [Register ("pddd", "()V", "GetPdddHandler")]
        public virtual unsafe void Pddd ()
        {
            const string __id = "pddd.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
        static Delegate cb_removeAllCallback;
#pragma warning disable 0169
        static Delegate GetRemoveAllCallbackHandler ()
        {
            if (cb_removeAllCallback == null)
                cb_removeAllCallback = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_RemoveAllCallback));
            return cb_removeAllCallback;
        }
 
        static void n_RemoveAllCallback (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.RemoveAllCallback ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='removeAllCallback' and count(parameter)=0]"
        [Register ("removeAllCallback", "()V", "GetRemoveAllCallbackHandler")]
        public virtual unsafe void RemoveAllCallback ()
        {
            const string __id = "removeAllCallback.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='removePhoneCallback' and count(parameter)=0]"
        [Register ("removePhoneCallback", "()V", "")]
        public static unsafe void RemovePhoneCallback ()
        {
            const string __id = "removePhoneCallback.()V";
            try {
                _members.StaticMethods.InvokeVoidMethod (__id, null);
            } finally {
            }
        }
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='removeRegistrationCallback' and count(parameter)=0]"
        [Register ("removeRegistrationCallback", "()V", "")]
        public static unsafe void RemoveRegistrationCallback ()
        {
            const string __id = "removeRegistrationCallback.()V";
            try {
                _members.StaticMethods.InvokeVoidMethod (__id, null);
            } finally {
            }
        }
 
    }
}