//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ #nullable restore using System; using System.Collections.Generic; using Android.Runtime; using Java.Interop; namespace Com.Tencent.Tinker.Lib.Tinker { // Metadata.xml XPath class reference: path="/api/package[@name='com.tencent.tinker.lib.tinker']/class[@name='TinkerInstaller']" [global::Android.Runtime.Register ("com/tencent/tinker/lib/tinker/TinkerInstaller", DoNotGenerateAcw=true)] public partial class TinkerInstaller : global::Java.Lang.Object { static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/tinker/TinkerInstaller", typeof (TinkerInstaller)); 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 TinkerInstaller (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer) { } // Metadata.xml XPath constructor reference: path="/api/package[@name='com.tencent.tinker.lib.tinker']/class[@name='TinkerInstaller']/constructor[@name='TinkerInstaller' and count(parameter)=0]" [Register (".ctor", "()V", "")] public unsafe TinkerInstaller () : 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 { } } // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.tinker']/class[@name='TinkerInstaller']/method[@name='cleanPatch' and count(parameter)=1 and parameter[1][@type='android.content.Context']]" [Register ("cleanPatch", "(Landroid/content/Context;)V", "")] public static unsafe void CleanPatch (global::Android.Content.Context context) { const string __id = "cleanPatch.(Landroid/content/Context;)V"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle); _members.StaticMethods.InvokeVoidMethod (__id, __args); } finally { global::System.GC.KeepAlive (context); } } // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.tinker']/class[@name='TinkerInstaller']/method[@name='onReceiveUpgradePatch' and count(parameter)=2 and parameter[1][@type='android.content.Context'] and parameter[2][@type='java.lang.String']]" [Register ("onReceiveUpgradePatch", "(Landroid/content/Context;Ljava/lang/String;)V", "")] public static unsafe void OnReceiveUpgradePatch (global::Android.Content.Context context, string patchLocation) { const string __id = "onReceiveUpgradePatch.(Landroid/content/Context;Ljava/lang/String;)V"; IntPtr native_patchLocation = JNIEnv.NewString ((string)patchLocation); try { JniArgumentValue* __args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle); __args [1] = new JniArgumentValue (native_patchLocation); _members.StaticMethods.InvokeVoidMethod (__id, __args); } finally { JNIEnv.DeleteLocalRef (native_patchLocation); global::System.GC.KeepAlive (context); } } // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.tinker']/class[@name='TinkerInstaller']/method[@name='setLogIml' and count(parameter)=1 and parameter[1][@type='com.tencent.tinker.lib.util.TinkerLog.TinkerLogImp']]" [Register ("setLogIml", "(Lcom/tencent/tinker/lib/util/TinkerLog$TinkerLogImp;)V", "")] public static unsafe void SetLogIml (global::Com.Tencent.Tinker.Lib.Util.TinkerLog.ITinkerLogImp imp) { const string __id = "setLogIml.(Lcom/tencent/tinker/lib/util/TinkerLog$TinkerLogImp;)V"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue ((imp == null) ? IntPtr.Zero : ((global::Java.Lang.Object) imp).Handle); _members.StaticMethods.InvokeVoidMethod (__id, __args); } finally { global::System.GC.KeepAlive (imp); } } } }