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
//------------------------------------------------------------------------------
// <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.Linphone {
 
    // Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.linphone']/class[@name='KeepAliveHandler']"
    [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/linphone/KeepAliveHandler", DoNotGenerateAcw=true)]
    public partial class KeepAliveHandler : global::Android.Content.BroadcastReceiver {
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/linphone/KeepAliveHandler", typeof (KeepAliveHandler));
 
        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 KeepAliveHandler (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
        {
        }
 
        // Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.linphone']/class[@name='KeepAliveHandler']/constructor[@name='KeepAliveHandler' and count(parameter)=0]"
        [Register (".ctor", "()V", "")]
        public unsafe KeepAliveHandler () : 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_onReceive_Landroid_content_Context_Landroid_content_Intent_;
#pragma warning disable 0169
        static Delegate GetOnReceive_Landroid_content_Context_Landroid_content_Intent_Handler ()
        {
            if (cb_onReceive_Landroid_content_Context_Landroid_content_Intent_ == null)
                cb_onReceive_Landroid_content_Context_Landroid_content_Intent_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPLL_V (n_OnReceive_Landroid_content_Context_Landroid_content_Intent_));
            return cb_onReceive_Landroid_content_Context_Landroid_content_Intent_;
        }
 
        static void n_OnReceive_Landroid_content_Context_Landroid_content_Intent_ (IntPtr jnienv, IntPtr native__this, IntPtr native_context, IntPtr native_intent)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Linphone.KeepAliveHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var context = global::Java.Lang.Object.GetObject<global::Android.Content.Context> (native_context, JniHandleOwnership.DoNotTransfer);
            var intent = global::Java.Lang.Object.GetObject<global::Android.Content.Intent> (native_intent, JniHandleOwnership.DoNotTransfer);
            __this.OnReceive (context, intent);
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.linphone']/class[@name='KeepAliveHandler']/method[@name='onReceive' and count(parameter)=2 and parameter[1][@type='android.content.Context'] and parameter[2][@type='android.content.Intent']]"
        [Register ("onReceive", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnReceive_Landroid_content_Context_Landroid_content_Intent_Handler")]
        public override unsafe void OnReceive (global::Android.Content.Context context, global::Android.Content.Intent intent)
        {
            const string __id = "onReceive.(Landroid/content/Context;Landroid/content/Intent;)V";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle);
                __args [1] = new JniArgumentValue ((intent == null) ? IntPtr.Zero : ((global::Java.Lang.Object) intent).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
            } finally {
                global::System.GC.KeepAlive (context);
                global::System.GC.KeepAlive (intent);
            }
        }
 
    }
}