wxr
2023-07-31 27cb19320ed4ac5552c17a263d0887a7cb88edc9
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
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;
 
        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 ((_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_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 ((_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_removeAllCallback;
#pragma warning disable 0169
        static Delegate GetRemoveAllCallbackHandler ()
        {
            if (cb_removeAllCallback == null)
                cb_removeAllCallback = JNINativeWrapper.CreateDelegate ((_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 {
            }
        }
 
    }
}