//------------------------------------------------------------------------------ // // 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.Util { // Metadata.xml XPath class reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']" [global::Android.Runtime.Register ("com/tencent/tinker/lib/util/UpgradePatchRetry", DoNotGenerateAcw=true)] public partial class UpgradePatchRetry : global::Java.Lang.Object { static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/util/UpgradePatchRetry", typeof (UpgradePatchRetry)); 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 UpgradePatchRetry (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer) { } // Metadata.xml XPath constructor reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/constructor[@name='UpgradePatchRetry' and count(parameter)=1 and parameter[1][@type='android.content.Context']]" [Register (".ctor", "(Landroid/content/Context;)V", "")] public unsafe UpgradePatchRetry (global::Android.Content.Context context) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Landroid/content/Context;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) return; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).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 (context); } } // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='getInstance' and count(parameter)=1 and parameter[1][@type='android.content.Context']]" [Register ("getInstance", "(Landroid/content/Context;)Lcom/tencent/tinker/lib/util/UpgradePatchRetry;", "")] public static unsafe global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry GetInstance (global::Android.Content.Context context) { const string __id = "getInstance.(Landroid/content/Context;)Lcom/tencent/tinker/lib/util/UpgradePatchRetry;"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args); return global::Java.Lang.Object.GetObject (__rm.Handle, JniHandleOwnership.TransferLocalRef); } finally { global::System.GC.KeepAlive (context); } } static Delegate cb_onPatchListenerCheck_Ljava_lang_String_; #pragma warning disable 0169 static Delegate GetOnPatchListenerCheck_Ljava_lang_String_Handler () { if (cb_onPatchListenerCheck_Ljava_lang_String_ == null) cb_onPatchListenerCheck_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_Z (n_OnPatchListenerCheck_Ljava_lang_String_)); return cb_onPatchListenerCheck_Ljava_lang_String_; } static bool n_OnPatchListenerCheck_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_md5) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); var md5 = JNIEnv.GetString (native_md5, JniHandleOwnership.DoNotTransfer); bool __ret = __this.OnPatchListenerCheck (md5); return __ret; } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchListenerCheck' and count(parameter)=1 and parameter[1][@type='java.lang.String']]" [Register ("onPatchListenerCheck", "(Ljava/lang/String;)Z", "GetOnPatchListenerCheck_Ljava_lang_String_Handler")] public virtual unsafe bool OnPatchListenerCheck (string md5) { const string __id = "onPatchListenerCheck.(Ljava/lang/String;)Z"; IntPtr native_md5 = JNIEnv.NewString ((string)md5); try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue (native_md5); var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, __args); return __rm; } finally { JNIEnv.DeleteLocalRef (native_md5); } } static Delegate cb_onPatchResetMaxCheck_Ljava_lang_String_; #pragma warning disable 0169 static Delegate GetOnPatchResetMaxCheck_Ljava_lang_String_Handler () { if (cb_onPatchResetMaxCheck_Ljava_lang_String_ == null) cb_onPatchResetMaxCheck_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_Z (n_OnPatchResetMaxCheck_Ljava_lang_String_)); return cb_onPatchResetMaxCheck_Ljava_lang_String_; } static bool n_OnPatchResetMaxCheck_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_md5) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); var md5 = JNIEnv.GetString (native_md5, JniHandleOwnership.DoNotTransfer); bool __ret = __this.OnPatchResetMaxCheck (md5); return __ret; } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchResetMaxCheck' and count(parameter)=1 and parameter[1][@type='java.lang.String']]" [Register ("onPatchResetMaxCheck", "(Ljava/lang/String;)Z", "GetOnPatchResetMaxCheck_Ljava_lang_String_Handler")] public virtual unsafe bool OnPatchResetMaxCheck (string md5) { const string __id = "onPatchResetMaxCheck.(Ljava/lang/String;)Z"; IntPtr native_md5 = JNIEnv.NewString ((string)md5); try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue (native_md5); var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, __args); return __rm; } finally { JNIEnv.DeleteLocalRef (native_md5); } } static Delegate cb_onPatchRetryLoad; #pragma warning disable 0169 static Delegate GetOnPatchRetryLoadHandler () { if (cb_onPatchRetryLoad == null) cb_onPatchRetryLoad = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_Z (n_OnPatchRetryLoad)); return cb_onPatchRetryLoad; } static bool n_OnPatchRetryLoad (IntPtr jnienv, IntPtr native__this) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return __this.OnPatchRetryLoad (); } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchRetryLoad' and count(parameter)=0]" [Register ("onPatchRetryLoad", "()Z", "GetOnPatchRetryLoadHandler")] public virtual unsafe bool OnPatchRetryLoad () { const string __id = "onPatchRetryLoad.()Z"; try { var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, null); return __rm; } finally { } } static Delegate cb_onPatchServiceResult; #pragma warning disable 0169 static Delegate GetOnPatchServiceResultHandler () { if (cb_onPatchServiceResult == null) cb_onPatchServiceResult = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_OnPatchServiceResult)); return cb_onPatchServiceResult; } static void n_OnPatchServiceResult (IntPtr jnienv, IntPtr native__this) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.OnPatchServiceResult (); } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchServiceResult' and count(parameter)=0]" [Register ("onPatchServiceResult", "()V", "GetOnPatchServiceResultHandler")] public virtual unsafe void OnPatchServiceResult () { const string __id = "onPatchServiceResult.()V"; try { _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null); } finally { } } static Delegate cb_onPatchServiceStart_Landroid_content_Intent_; #pragma warning disable 0169 static Delegate GetOnPatchServiceStart_Landroid_content_Intent_Handler () { if (cb_onPatchServiceStart_Landroid_content_Intent_ == null) cb_onPatchServiceStart_Landroid_content_Intent_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_OnPatchServiceStart_Landroid_content_Intent_)); return cb_onPatchServiceStart_Landroid_content_Intent_; } static void n_OnPatchServiceStart_Landroid_content_Intent_ (IntPtr jnienv, IntPtr native__this, IntPtr native_intent) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); var intent = global::Java.Lang.Object.GetObject (native_intent, JniHandleOwnership.DoNotTransfer); __this.OnPatchServiceStart (intent); } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchServiceStart' and count(parameter)=1 and parameter[1][@type='android.content.Intent']]" [Register ("onPatchServiceStart", "(Landroid/content/Intent;)V", "GetOnPatchServiceStart_Landroid_content_Intent_Handler")] public virtual unsafe void OnPatchServiceStart (global::Android.Content.Intent intent) { const string __id = "onPatchServiceStart.(Landroid/content/Intent;)V"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue ((intent == null) ? IntPtr.Zero : ((global::Java.Lang.Object) intent).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args); } finally { global::System.GC.KeepAlive (intent); } } static Delegate cb_setMaxRetryCount_I; #pragma warning disable 0169 static Delegate GetSetMaxRetryCount_IHandler () { if (cb_setMaxRetryCount_I == null) cb_setMaxRetryCount_I = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPI_V (n_SetMaxRetryCount_I)); return cb_setMaxRetryCount_I; } static void n_SetMaxRetryCount_I (IntPtr jnienv, IntPtr native__this, int count) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.SetMaxRetryCount (count); } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='setMaxRetryCount' and count(parameter)=1 and parameter[1][@type='int']]" [Register ("setMaxRetryCount", "(I)V", "GetSetMaxRetryCount_IHandler")] public virtual unsafe void SetMaxRetryCount (int count) { const string __id = "setMaxRetryCount.(I)V"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue (count); _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args); } finally { } } static Delegate cb_setRetryEnable_Z; #pragma warning disable 0169 static Delegate GetSetRetryEnable_ZHandler () { if (cb_setRetryEnable_Z == null) cb_setRetryEnable_Z = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPZ_V (n_SetRetryEnable_Z)); return cb_setRetryEnable_Z; } static void n_SetRetryEnable_Z (IntPtr jnienv, IntPtr native__this, bool enable) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.SetRetryEnable (enable); } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='setRetryEnable' and count(parameter)=1 and parameter[1][@type='boolean']]" [Register ("setRetryEnable", "(Z)V", "GetSetRetryEnable_ZHandler")] public virtual unsafe void SetRetryEnable (bool enable) { const string __id = "setRetryEnable.(Z)V"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue (enable); _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args); } finally { } } } }