using System;
|
using System.Collections.Generic;
|
using Android.Runtime;
|
using Java.Interop;
|
|
namespace Com.Hdl.Hdllinphonesdk.Core.Callback {
|
|
// Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']"
|
[global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", DoNotGenerateAcw=true)]
|
public abstract partial class PhoneCallback : global::Java.Lang.Object {
|
static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", typeof (PhoneCallback));
|
|
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 PhoneCallback (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
|
{
|
}
|
|
// Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/constructor[@name='PhoneCallback' and count(parameter)=0]"
|
[Register (".ctor", "()V", "")]
|
public unsafe PhoneCallback () : 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_callConnected;
|
#pragma warning disable 0169
|
static Delegate GetCallConnectedHandler ()
|
{
|
if (cb_callConnected == null)
|
cb_callConnected = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_CallConnected);
|
return cb_callConnected;
|
}
|
|
static void n_CallConnected (IntPtr jnienv, IntPtr native__this)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.CallConnected ();
|
}
|
#pragma warning restore 0169
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='callConnected' and count(parameter)=0]"
|
[Register ("callConnected", "()V", "GetCallConnectedHandler")]
|
public virtual unsafe void CallConnected ()
|
{
|
const string __id = "callConnected.()V";
|
try {
|
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
|
} finally {
|
}
|
}
|
|
static Delegate cb_callEnd;
|
#pragma warning disable 0169
|
static Delegate GetCallEndHandler ()
|
{
|
if (cb_callEnd == null)
|
cb_callEnd = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_CallEnd);
|
return cb_callEnd;
|
}
|
|
static void n_CallEnd (IntPtr jnienv, IntPtr native__this)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.CallEnd ();
|
}
|
#pragma warning restore 0169
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='callEnd' and count(parameter)=0]"
|
[Register ("callEnd", "()V", "GetCallEndHandler")]
|
public virtual unsafe void CallEnd ()
|
{
|
const string __id = "callEnd.()V";
|
try {
|
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
|
} finally {
|
}
|
}
|
|
static Delegate cb_callReleased;
|
#pragma warning disable 0169
|
static Delegate GetCallReleasedHandler ()
|
{
|
if (cb_callReleased == null)
|
cb_callReleased = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_CallReleased);
|
return cb_callReleased;
|
}
|
|
static void n_CallReleased (IntPtr jnienv, IntPtr native__this)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.CallReleased ();
|
}
|
#pragma warning restore 0169
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='callReleased' and count(parameter)=0]"
|
[Register ("callReleased", "()V", "GetCallReleasedHandler")]
|
public virtual unsafe void CallReleased ()
|
{
|
const string __id = "callReleased.()V";
|
try {
|
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
|
} finally {
|
}
|
}
|
|
static Delegate cb_error_Ljava_lang_String_;
|
#pragma warning disable 0169
|
static Delegate GetError_Ljava_lang_String_Handler ()
|
{
|
if (cb_error_Ljava_lang_String_ == null)
|
cb_error_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPL_V) n_Error_Ljava_lang_String_);
|
return cb_error_Ljava_lang_String_;
|
}
|
|
static void n_Error_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_error)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
var error = JNIEnv.GetString (native_error, JniHandleOwnership.DoNotTransfer);
|
__this.Error (error);
|
}
|
#pragma warning restore 0169
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='error' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
|
[Register ("error", "(Ljava/lang/String;)V", "GetError_Ljava_lang_String_Handler")]
|
public virtual unsafe void Error (string error)
|
{
|
const string __id = "error.(Ljava/lang/String;)V";
|
IntPtr native_error = JNIEnv.NewString (error);
|
try {
|
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
|
__args [0] = new JniArgumentValue (native_error);
|
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
|
} finally {
|
JNIEnv.DeleteLocalRef (native_error);
|
}
|
}
|
|
static Delegate cb_outgoingInit;
|
#pragma warning disable 0169
|
static Delegate GetOutgoingInitHandler ()
|
{
|
if (cb_outgoingInit == null)
|
cb_outgoingInit = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_OutgoingInit);
|
return cb_outgoingInit;
|
}
|
|
static void n_OutgoingInit (IntPtr jnienv, IntPtr native__this)
|
{
|
var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
|
__this.OutgoingInit ();
|
}
|
#pragma warning restore 0169
|
|
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.callback']/class[@name='PhoneCallback']/method[@name='outgoingInit' and count(parameter)=0]"
|
[Register ("outgoingInit", "()V", "GetOutgoingInitHandler")]
|
public virtual unsafe void OutgoingInit ()
|
{
|
const string __id = "outgoingInit.()V";
|
try {
|
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
|
} finally {
|
}
|
}
|
|
}
|
|
[global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", DoNotGenerateAcw=true)]
|
internal partial class PhoneCallbackInvoker : PhoneCallback {
|
public PhoneCallbackInvoker (IntPtr handle, JniHandleOwnership transfer) : base (handle, transfer)
|
{
|
}
|
|
static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/callback/PhoneCallback", typeof (PhoneCallbackInvoker));
|
|
[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 global::System.Type ThresholdType {
|
get { return _members.ManagedPeerType; }
|
}
|
|
}
|
}
|