using System;
|
using System.Collections.Generic;
|
using Android.Runtime;
|
using Java.Interop;
|
|
namespace Com.Hdl.Hdllinphonesdk.Callback {
|
|
// Metadata.xml XPath interface reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnHDLLinphoneCallListener']"
|
[Register ("com/hdl/hdllinphonesdk/callback/OnHDLLinphoneCallListener", "", "Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListenerInvoker")]
|
public partial interface IOnHDLLinphoneCallListener : IJavaObject, IJavaPeerable {
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnHDLLinphoneCallListener']/method[@name='onAnswerAction' and count(parameter)=0]"
|
[Register ("onAnswerAction", "()V", "GetOnAnswerActionHandler:Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListenerInvoker, Shared.Droid.HDLLinphone")]
|
void OnAnswerAction ();
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnHDLLinphoneCallListener']/method[@name='onHangUpAction' and count(parameter)=1 and parameter[1][@type='int']]"
|
[Register ("onHangUpAction", "(I)V", "GetOnHangUpAction_IHandler:Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListenerInvoker, Shared.Droid.HDLLinphone")]
|
void OnHangUpAction (int p0);
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnHDLLinphoneCallListener']/method[@name='onIncomingCall' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
|
[Register ("onIncomingCall", "(Ljava/lang/String;)V", "GetOnIncomingCall_Ljava_lang_String_Handler:Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListenerInvoker, Shared.Droid.HDLLinphone")]
|
void OnIncomingCall (string p0);
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnHDLLinphoneCallListener']/method[@name='onRejectCallAction' and count(parameter)=0]"
|
[Register ("onRejectCallAction", "()V", "GetOnRejectCallActionHandler:Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListenerInvoker, Shared.Droid.HDLLinphone")]
|
void OnRejectCallAction ();
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnHDLLinphoneCallListener']/method[@name='onScreenshotSuccessfulAction' and count(parameter)=1 and parameter[1][@type='android.graphics.Bitmap']]"
|
[Register ("onScreenshotSuccessfulAction", "(Landroid/graphics/Bitmap;)V", "GetOnScreenshotSuccessfulAction_Landroid_graphics_Bitmap_Handler:Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListenerInvoker, Shared.Droid.HDLLinphone")]
|
void OnScreenshotSuccessfulAction (global::Android.Graphics.Bitmap p0);
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.callback']/interface[@name='OnHDLLinphoneCallListener']/method[@name='onUnlockAction' and count(parameter)=0]"
|
[Register ("onUnlockAction", "()V", "GetOnUnlockActionHandler:Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListenerInvoker, Shared.Droid.HDLLinphone")]
|
void OnUnlockAction ();
|
|
}
|
|
[global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/callback/OnHDLLinphoneCallListener", DoNotGenerateAcw=true)]
|
internal partial class IOnHDLLinphoneCallListenerInvoker : global::Java.Lang.Object, IOnHDLLinphoneCallListener {
|
static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/callback/OnHDLLinphoneCallListener", typeof (IOnHDLLinphoneCallListenerInvoker));
|
|
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 IOnHDLLinphoneCallListener GetObject (IntPtr handle, JniHandleOwnership transfer)
|
{
|
return global::Java.Lang.Object.GetObject<IOnHDLLinphoneCallListener> (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.callback.OnHDLLinphoneCallListener'.");
|
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 IOnHDLLinphoneCallListenerInvoker (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_onAnswerAction;
|
#pragma warning disable 0169
|
static Delegate GetOnAnswerActionHandler ()
|
{
|
if (cb_onAnswerAction == null)
|
cb_onAnswerAction = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_OnAnswerAction));
|
return cb_onAnswerAction;
|
}
|
|
static void n_OnAnswerAction (IntPtr jnienv, IntPtr native__this)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.OnAnswerAction ();
|
}
|
#pragma warning restore 0169
|
|
IntPtr id_onAnswerAction;
|
public unsafe void OnAnswerAction ()
|
{
|
if (id_onAnswerAction == IntPtr.Zero)
|
id_onAnswerAction = JNIEnv.GetMethodID (class_ref, "onAnswerAction", "()V");
|
JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_onAnswerAction);
|
}
|
|
static Delegate cb_onHangUpAction_I;
|
#pragma warning disable 0169
|
static Delegate GetOnHangUpAction_IHandler ()
|
{
|
if (cb_onHangUpAction_I == null)
|
cb_onHangUpAction_I = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPI_V (n_OnHangUpAction_I));
|
return cb_onHangUpAction_I;
|
}
|
|
static void n_OnHangUpAction_I (IntPtr jnienv, IntPtr native__this, int p0)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.OnHangUpAction (p0);
|
}
|
#pragma warning restore 0169
|
|
IntPtr id_onHangUpAction_I;
|
public unsafe void OnHangUpAction (int p0)
|
{
|
if (id_onHangUpAction_I == IntPtr.Zero)
|
id_onHangUpAction_I = JNIEnv.GetMethodID (class_ref, "onHangUpAction", "(I)V");
|
JValue* __args = stackalloc JValue [1];
|
__args [0] = new JValue (p0);
|
JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_onHangUpAction_I, __args);
|
}
|
|
static Delegate cb_onIncomingCall_Ljava_lang_String_;
|
#pragma warning disable 0169
|
static Delegate GetOnIncomingCall_Ljava_lang_String_Handler ()
|
{
|
if (cb_onIncomingCall_Ljava_lang_String_ == null)
|
cb_onIncomingCall_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_OnIncomingCall_Ljava_lang_String_));
|
return cb_onIncomingCall_Ljava_lang_String_;
|
}
|
|
static void n_OnIncomingCall_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
var p0 = JNIEnv.GetString (native_p0, JniHandleOwnership.DoNotTransfer);
|
__this.OnIncomingCall (p0);
|
}
|
#pragma warning restore 0169
|
|
IntPtr id_onIncomingCall_Ljava_lang_String_;
|
public unsafe void OnIncomingCall (string p0)
|
{
|
if (id_onIncomingCall_Ljava_lang_String_ == IntPtr.Zero)
|
id_onIncomingCall_Ljava_lang_String_ = JNIEnv.GetMethodID (class_ref, "onIncomingCall", "(Ljava/lang/String;)V");
|
IntPtr native_p0 = JNIEnv.NewString ((string)p0);
|
JValue* __args = stackalloc JValue [1];
|
__args [0] = new JValue (native_p0);
|
JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_onIncomingCall_Ljava_lang_String_, __args);
|
JNIEnv.DeleteLocalRef (native_p0);
|
}
|
|
static Delegate cb_onRejectCallAction;
|
#pragma warning disable 0169
|
static Delegate GetOnRejectCallActionHandler ()
|
{
|
if (cb_onRejectCallAction == null)
|
cb_onRejectCallAction = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_OnRejectCallAction));
|
return cb_onRejectCallAction;
|
}
|
|
static void n_OnRejectCallAction (IntPtr jnienv, IntPtr native__this)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.OnRejectCallAction ();
|
}
|
#pragma warning restore 0169
|
|
IntPtr id_onRejectCallAction;
|
public unsafe void OnRejectCallAction ()
|
{
|
if (id_onRejectCallAction == IntPtr.Zero)
|
id_onRejectCallAction = JNIEnv.GetMethodID (class_ref, "onRejectCallAction", "()V");
|
JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_onRejectCallAction);
|
}
|
|
static Delegate cb_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_;
|
#pragma warning disable 0169
|
static Delegate GetOnScreenshotSuccessfulAction_Landroid_graphics_Bitmap_Handler ()
|
{
|
if (cb_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_ == null)
|
cb_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_OnScreenshotSuccessfulAction_Landroid_graphics_Bitmap_));
|
return cb_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_;
|
}
|
|
static void n_OnScreenshotSuccessfulAction_Landroid_graphics_Bitmap_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
var p0 = global::Java.Lang.Object.GetObject<global::Android.Graphics.Bitmap> (native_p0, JniHandleOwnership.DoNotTransfer);
|
__this.OnScreenshotSuccessfulAction (p0);
|
}
|
#pragma warning restore 0169
|
|
IntPtr id_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_;
|
public unsafe void OnScreenshotSuccessfulAction (global::Android.Graphics.Bitmap p0)
|
{
|
if (id_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_ == IntPtr.Zero)
|
id_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_ = JNIEnv.GetMethodID (class_ref, "onScreenshotSuccessfulAction", "(Landroid/graphics/Bitmap;)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_onScreenshotSuccessfulAction_Landroid_graphics_Bitmap_, __args);
|
}
|
|
static Delegate cb_onUnlockAction;
|
#pragma warning disable 0169
|
static Delegate GetOnUnlockActionHandler ()
|
{
|
if (cb_onUnlockAction == null)
|
cb_onUnlockAction = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_OnUnlockAction));
|
return cb_onUnlockAction;
|
}
|
|
static void n_OnUnlockAction (IntPtr jnienv, IntPtr native__this)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Callback.IOnHDLLinphoneCallListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.OnUnlockAction ();
|
}
|
#pragma warning restore 0169
|
|
IntPtr id_onUnlockAction;
|
public unsafe void OnUnlockAction ()
|
{
|
if (id_onUnlockAction == IntPtr.Zero)
|
id_onUnlockAction = JNIEnv.GetMethodID (class_ref, "onUnlockAction", "()V");
|
JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_onUnlockAction);
|
}
|
|
}
|
|
// event args for com.hdl.hdllinphonesdk.callback.OnHDLLinphoneCallListener.onHangUpAction
|
public partial class HangUpActionEventArgs : global::System.EventArgs {
|
public HangUpActionEventArgs (int p0)
|
{
|
this.p0 = p0;
|
}
|
|
int p0;
|
|
public int P0 {
|
get { return p0; }
|
}
|
|
}
|
|
// event args for com.hdl.hdllinphonesdk.callback.OnHDLLinphoneCallListener.onIncomingCall
|
public partial class IncomingCallEventArgs : global::System.EventArgs {
|
public IncomingCallEventArgs (string p0)
|
{
|
this.p0 = p0;
|
}
|
|
string p0;
|
|
public string P0 {
|
get { return p0; }
|
}
|
|
}
|
|
// event args for com.hdl.hdllinphonesdk.callback.OnHDLLinphoneCallListener.onScreenshotSuccessfulAction
|
public partial class ScreenshotSuccessfulActionEventArgs : global::System.EventArgs {
|
public ScreenshotSuccessfulActionEventArgs (global::Android.Graphics.Bitmap p0)
|
{
|
this.p0 = p0;
|
}
|
|
global::Android.Graphics.Bitmap p0;
|
|
public global::Android.Graphics.Bitmap P0 {
|
get { return p0; }
|
}
|
|
}
|
|
[global::Android.Runtime.Register ("mono/com/hdl/hdllinphonesdk/callback/OnHDLLinphoneCallListenerImplementor")]
|
internal sealed partial class IOnHDLLinphoneCallListenerImplementor : global::Java.Lang.Object, IOnHDLLinphoneCallListener {
|
|
object sender;
|
|
public IOnHDLLinphoneCallListenerImplementor (object sender) : base (global::Android.Runtime.JNIEnv.StartCreateInstance ("mono/com/hdl/hdllinphonesdk/callback/OnHDLLinphoneCallListenerImplementor", "()V"), JniHandleOwnership.TransferLocalRef)
|
{
|
global::Android.Runtime.JNIEnv.FinishCreateInstance (((global::Java.Lang.Object) this).Handle, "()V");
|
this.sender = sender;
|
}
|
|
#pragma warning disable 0649
|
public EventHandler OnAnswerActionHandler;
|
#pragma warning restore 0649
|
|
public void OnAnswerAction ()
|
{
|
var __h = OnAnswerActionHandler;
|
if (__h != null)
|
__h (sender, new EventArgs ());
|
}
|
|
#pragma warning disable 0649
|
public EventHandler<HangUpActionEventArgs> OnHangUpActionHandler;
|
#pragma warning restore 0649
|
|
public void OnHangUpAction (int p0)
|
{
|
var __h = OnHangUpActionHandler;
|
if (__h != null)
|
__h (sender, new HangUpActionEventArgs (p0));
|
}
|
|
#pragma warning disable 0649
|
public EventHandler<IncomingCallEventArgs> OnIncomingCallHandler;
|
#pragma warning restore 0649
|
|
public void OnIncomingCall (string p0)
|
{
|
var __h = OnIncomingCallHandler;
|
if (__h != null)
|
__h (sender, new IncomingCallEventArgs (p0));
|
}
|
|
#pragma warning disable 0649
|
public EventHandler OnRejectCallActionHandler;
|
#pragma warning restore 0649
|
|
public void OnRejectCallAction ()
|
{
|
var __h = OnRejectCallActionHandler;
|
if (__h != null)
|
__h (sender, new EventArgs ());
|
}
|
|
#pragma warning disable 0649
|
public EventHandler<ScreenshotSuccessfulActionEventArgs> OnScreenshotSuccessfulActionHandler;
|
#pragma warning restore 0649
|
|
public void OnScreenshotSuccessfulAction (global::Android.Graphics.Bitmap p0)
|
{
|
var __h = OnScreenshotSuccessfulActionHandler;
|
if (__h != null)
|
__h (sender, new ScreenshotSuccessfulActionEventArgs (p0));
|
}
|
|
#pragma warning disable 0649
|
public EventHandler OnUnlockActionHandler;
|
#pragma warning restore 0649
|
|
public void OnUnlockAction ()
|
{
|
var __h = OnUnlockActionHandler;
|
if (__h != null)
|
__h (sender, new EventArgs ());
|
}
|
|
internal static bool __IsEmpty (IOnHDLLinphoneCallListenerImplementor value)
|
{
|
return value.OnAnswerActionHandler == null && value.OnHangUpActionHandler == null && value.OnIncomingCallHandler == null && value.OnRejectCallActionHandler == null && value.OnScreenshotSuccessfulActionHandler == null && value.OnUnlockActionHandler == null;
|
}
|
|
}
|
}
|