//------------------------------------------------------------------------------
//
// 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.Hdl.Hdllinphonesdk.Dialog {
// Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/class[@name='LpTipDialog']"
[global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/dialog/LpTipDialog", DoNotGenerateAcw=true)]
public partial class LpTipDialog : global::Android.App.Dialog {
// Metadata.xml XPath interface reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/interface[@name='LpTipDialog.ClickListenerInterface']"
[Register ("com/hdl/hdllinphonesdk/dialog/LpTipDialog$ClickListenerInterface", "", "Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog/IClickListenerInterfaceInvoker")]
public partial interface IClickListenerInterface : IJavaObject, IJavaPeerable {
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/interface[@name='LpTipDialog.ClickListenerInterface']/method[@name='CancelClick' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.dialog.LpTipDialog']]"
[Register ("CancelClick", "(Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog;)V", "GetCancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_Handler:Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog/IClickListenerInterfaceInvoker, Shared.Droid.HDLLinphone")]
void CancelClick (global::Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog p0);
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/interface[@name='LpTipDialog.ClickListenerInterface']/method[@name='SureClick' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.dialog.LpTipDialog']]"
[Register ("SureClick", "(Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog;)V", "GetSureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_Handler:Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog/IClickListenerInterfaceInvoker, Shared.Droid.HDLLinphone")]
void SureClick (global::Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog p0);
}
[global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/dialog/LpTipDialog$ClickListenerInterface", DoNotGenerateAcw=true)]
internal partial class IClickListenerInterfaceInvoker : global::Java.Lang.Object, IClickListenerInterface {
static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/dialog/LpTipDialog$ClickListenerInterface", typeof (IClickListenerInterfaceInvoker));
static IntPtr java_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 class_ref; }
}
[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; }
}
IntPtr class_ref;
public static IClickListenerInterface GetObject (IntPtr handle, JniHandleOwnership transfer)
{
return global::Java.Lang.Object.GetObject (handle, transfer);
}
static IntPtr Validate (IntPtr handle)
{
if (!JNIEnv.IsInstanceOf (handle, java_class_ref))
throw new InvalidCastException ($"Unable to convert instance of type '{JNIEnv.GetClassNameFromInstance (handle)}' to type 'com.hdl.hdllinphonesdk.dialog.LpTipDialog.ClickListenerInterface'.");
return handle;
}
protected override void Dispose (bool disposing)
{
if (this.class_ref != IntPtr.Zero)
JNIEnv.DeleteGlobalRef (this.class_ref);
this.class_ref = IntPtr.Zero;
base.Dispose (disposing);
}
public IClickListenerInterfaceInvoker (IntPtr handle, JniHandleOwnership transfer) : base (Validate (handle), transfer)
{
IntPtr local_ref = JNIEnv.GetObjectClass (((global::Java.Lang.Object) this).Handle);
this.class_ref = JNIEnv.NewGlobalRef (local_ref);
JNIEnv.DeleteLocalRef (local_ref);
}
static Delegate cb_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_;
#pragma warning disable 0169
static Delegate GetCancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_Handler ()
{
if (cb_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ == null)
cb_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_));
return cb_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_;
}
static void n_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
var p0 = global::Java.Lang.Object.GetObject (native_p0, JniHandleOwnership.DoNotTransfer);
__this.CancelClick (p0);
}
#pragma warning restore 0169
IntPtr id_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_;
public unsafe void CancelClick (global::Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog p0)
{
if (id_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ == IntPtr.Zero)
id_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ = JNIEnv.GetMethodID (class_ref, "CancelClick", "(Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog;)V");
JValue* __args = stackalloc JValue [1];
__args [0] = new JValue ((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object) p0).Handle);
JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_CancelClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_, __args);
}
static Delegate cb_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_;
#pragma warning disable 0169
static Delegate GetSureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_Handler ()
{
if (cb_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ == null)
cb_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_));
return cb_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_;
}
static void n_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
var p0 = global::Java.Lang.Object.GetObject (native_p0, JniHandleOwnership.DoNotTransfer);
__this.SureClick (p0);
}
#pragma warning restore 0169
IntPtr id_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_;
public unsafe void SureClick (global::Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog p0)
{
if (id_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ == IntPtr.Zero)
id_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ = JNIEnv.GetMethodID (class_ref, "SureClick", "(Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog;)V");
JValue* __args = stackalloc JValue [1];
__args [0] = new JValue ((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object) p0).Handle);
JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_SureClick_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_, __args);
}
}
static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/dialog/LpTipDialog", typeof (LpTipDialog));
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 LpTipDialog (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
{
}
// Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/class[@name='LpTipDialog']/constructor[@name='LpTipDialog' and count(parameter)=1 and parameter[1][@type='android.content.Context']]"
[Register (".ctor", "(Landroid/content/Context;)V", "")]
public unsafe LpTipDialog (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 constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/class[@name='LpTipDialog']/constructor[@name='LpTipDialog' and count(parameter)=3 and parameter[1][@type='android.content.Context'] and parameter[2][@type='java.lang.String'] and parameter[3][@type='java.lang.String']]"
[Register (".ctor", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V", "")]
public unsafe LpTipDialog (global::Android.Content.Context context, string title, string content) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
{
const string __id = "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V";
if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
return;
IntPtr native_title = JNIEnv.NewString ((string)title);
IntPtr native_content = JNIEnv.NewString ((string)content);
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [3];
__args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle);
__args [1] = new JniArgumentValue (native_title);
__args [2] = new JniArgumentValue (native_content);
var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), __args);
SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
_members.InstanceMethods.FinishCreateInstance (__id, this, __args);
} finally {
JNIEnv.DeleteLocalRef (native_title);
JNIEnv.DeleteLocalRef (native_content);
global::System.GC.KeepAlive (context);
}
}
// Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/class[@name='LpTipDialog']/constructor[@name='LpTipDialog' and count(parameter)=4 and parameter[1][@type='android.content.Context'] and parameter[2][@type='java.lang.String'] and parameter[3][@type='java.lang.String'] and parameter[4][@type='com.hdl.hdllinphonesdk.dialog.LpTipDialog.ClickListenerInterface']]"
[Register (".ctor", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog$ClickListenerInterface;)V", "")]
public unsafe LpTipDialog (global::Android.Content.Context context, string title, string content, global::Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog.IClickListenerInterface listener) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
{
const string __id = "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog$ClickListenerInterface;)V";
if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
return;
IntPtr native_title = JNIEnv.NewString ((string)title);
IntPtr native_content = JNIEnv.NewString ((string)content);
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [4];
__args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle);
__args [1] = new JniArgumentValue (native_title);
__args [2] = new JniArgumentValue (native_content);
__args [3] = new JniArgumentValue ((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object) listener).Handle);
var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), __args);
SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
_members.InstanceMethods.FinishCreateInstance (__id, this, __args);
} finally {
JNIEnv.DeleteLocalRef (native_title);
JNIEnv.DeleteLocalRef (native_content);
global::System.GC.KeepAlive (context);
global::System.GC.KeepAlive (listener);
}
}
static Delegate cb_setClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_;
#pragma warning disable 0169
static Delegate GetSetClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_Handler ()
{
if (cb_setClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_ == null)
cb_setClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_SetClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_));
return cb_setClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_;
}
static void n_SetClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_ (IntPtr jnienv, IntPtr native__this, IntPtr native_clickListenerInterfacel)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
var clickListenerInterfacel = (global::Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog.IClickListenerInterface)global::Java.Lang.Object.GetObject (native_clickListenerInterfacel, JniHandleOwnership.DoNotTransfer);
__this.SetClickListener (clickListenerInterfacel);
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/class[@name='LpTipDialog']/method[@name='setClickListener' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.dialog.LpTipDialog.ClickListenerInterface']]"
[Register ("setClickListener", "(Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog$ClickListenerInterface;)V", "GetSetClickListener_Lcom_hdl_hdllinphonesdk_dialog_LpTipDialog_ClickListenerInterface_Handler")]
public virtual unsafe void SetClickListener (global::Com.Hdl.Hdllinphonesdk.Dialog.LpTipDialog.IClickListenerInterface clickListenerInterfacel)
{
const string __id = "setClickListener.(Lcom/hdl/hdllinphonesdk/dialog/LpTipDialog$ClickListenerInterface;)V";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue ((clickListenerInterfacel == null) ? IntPtr.Zero : ((global::Java.Lang.Object) clickListenerInterfacel).Handle);
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
} finally {
global::System.GC.KeepAlive (clickListenerInterfacel);
}
}
static Delegate cb_setMessage_Ljava_lang_String_;
#pragma warning disable 0169
static Delegate GetSetMessage_Ljava_lang_String_Handler ()
{
if (cb_setMessage_Ljava_lang_String_ == null)
cb_setMessage_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_SetMessage_Ljava_lang_String_));
return cb_setMessage_Ljava_lang_String_;
}
static void n_SetMessage_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_message)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
var message = JNIEnv.GetString (native_message, JniHandleOwnership.DoNotTransfer);
__this.SetMessage (message);
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/class[@name='LpTipDialog']/method[@name='setMessage' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
[Register ("setMessage", "(Ljava/lang/String;)V", "GetSetMessage_Ljava_lang_String_Handler")]
public virtual unsafe void SetMessage (string message)
{
const string __id = "setMessage.(Ljava/lang/String;)V";
IntPtr native_message = JNIEnv.NewString ((string)message);
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue (native_message);
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
} finally {
JNIEnv.DeleteLocalRef (native_message);
}
}
static Delegate cb_setTitle_Ljava_lang_String_;
#pragma warning disable 0169
static Delegate GetSetTitle_Ljava_lang_String_Handler ()
{
if (cb_setTitle_Ljava_lang_String_ == null)
cb_setTitle_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_SetTitle_Ljava_lang_String_));
return cb_setTitle_Ljava_lang_String_;
}
static void n_SetTitle_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_title)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
var title = JNIEnv.GetString (native_title, JniHandleOwnership.DoNotTransfer);
__this.SetTitle (title);
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.dialog']/class[@name='LpTipDialog']/method[@name='setTitle' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
[Register ("setTitle", "(Ljava/lang/String;)V", "GetSetTitle_Ljava_lang_String_Handler")]
public virtual unsafe void SetTitle (string title)
{
const string __id = "setTitle.(Ljava/lang/String;)V";
IntPtr native_title = JNIEnv.NewString ((string)title);
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue (native_title);
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
} finally {
JNIEnv.DeleteLocalRef (native_title);
}
}
}
}