//------------------------------------------------------------------------------
//
// 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.Core.Service {
// Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']"
[global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService", DoNotGenerateAcw=true)]
public partial class HDLLinphoneService : global::Android.App.Service {
// Metadata.xml XPath field reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/field[@name='NOTIFICATION_ID']"
[Register ("NOTIFICATION_ID")]
public const int NotificationId = (int) 2;
// Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService.LinphoneBinder']"
[global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService$LinphoneBinder", DoNotGenerateAcw=true)]
public partial class LinphoneBinder : global::Android.OS.Binder {
static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService$LinphoneBinder", typeof (LinphoneBinder));
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 LinphoneBinder (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
{
}
// Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService.LinphoneBinder']/constructor[@name='HDLLinphoneService.LinphoneBinder' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.core.service.HDLLinphoneService']]"
[Register (".ctor", "(Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;)V", "")]
public unsafe LinphoneBinder (global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService __self) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
{
string __id = "(L" + global::Android.Runtime.JNIEnv.GetJniName (GetType ().DeclaringType) + ";)V";
if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
return;
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue ((__self == null) ? IntPtr.Zero : ((global::Java.Lang.Object) __self).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 (__self);
}
}
static Delegate cb_getService;
#pragma warning disable 0169
static Delegate GetGetServiceHandler ()
{
if (cb_getService == null)
cb_getService = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_L (n_GetService));
return cb_getService;
}
static IntPtr n_GetService (IntPtr jnienv, IntPtr native__this)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
return JNIEnv.ToLocalJniHandle (__this.Service);
}
#pragma warning restore 0169
public virtual unsafe global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService Service {
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService.LinphoneBinder']/method[@name='getService' and count(parameter)=0]"
[Register ("getService", "()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;", "GetGetServiceHandler")]
get {
const string __id = "getService.()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;";
try {
var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, null);
return global::Java.Lang.Object.GetObject (__rm.Handle, JniHandleOwnership.TransferLocalRef);
} finally {
}
}
}
}
static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/core/service/HDLLinphoneService", typeof (HDLLinphoneService));
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 HDLLinphoneService (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
{
}
// Metadata.xml XPath constructor reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/constructor[@name='HDLLinphoneService' and count(parameter)=0]"
[Register (".ctor", "()V", "")]
public unsafe HDLLinphoneService () : 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 {
}
}
public static unsafe global::Java.Lang.Boolean CoreIsNotNull {
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='getCoreIsNotNull' and count(parameter)=0]"
[Register ("getCoreIsNotNull", "()Ljava/lang/Boolean;", "")]
get {
const string __id = "getCoreIsNotNull.()Ljava/lang/Boolean;";
try {
var __rm = _members.StaticMethods.InvokeObjectMethod (__id, null);
return global::Java.Lang.Object.GetObject (__rm.Handle, JniHandleOwnership.TransferLocalRef);
} finally {
}
}
}
public static unsafe global::Com.Hdl.Hdllinphonesdk.Core.Service.HDLLinphoneService Instance {
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='getInstance' and count(parameter)=0]"
[Register ("getInstance", "()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;", "")]
get {
const string __id = "getInstance.()Lcom/hdl/hdllinphonesdk/core/service/HDLLinphoneService;";
try {
var __rm = _members.StaticMethods.InvokeObjectMethod (__id, null);
return global::Java.Lang.Object.GetObject (__rm.Handle, JniHandleOwnership.TransferLocalRef);
} finally {
}
}
}
public static unsafe bool IsReady {
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='isReady' and count(parameter)=0]"
[Register ("isReady", "()Z", "")]
get {
const string __id = "isReady.()Z";
try {
var __rm = _members.StaticMethods.InvokeBooleanMethod (__id, null);
return __rm;
} finally {
}
}
}
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='addPhoneCallback' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.core.callback.PhoneCallback']]"
[Register ("addPhoneCallback", "(Lcom/hdl/hdllinphonesdk/core/callback/PhoneCallback;)V", "")]
public static unsafe void AddPhoneCallback (global::Com.Hdl.Hdllinphonesdk.Core.Callback.PhoneCallback phoneCallback)
{
const string __id = "addPhoneCallback.(Lcom/hdl/hdllinphonesdk/core/callback/PhoneCallback;)V";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue ((phoneCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object) phoneCallback).Handle);
_members.StaticMethods.InvokeVoidMethod (__id, __args);
} finally {
global::System.GC.KeepAlive (phoneCallback);
}
}
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='addRegistrationCallback' and count(parameter)=1 and parameter[1][@type='com.hdl.hdllinphonesdk.core.callback.RegistrationCallback']]"
[Register ("addRegistrationCallback", "(Lcom/hdl/hdllinphonesdk/core/callback/RegistrationCallback;)V", "")]
public static unsafe void AddRegistrationCallback (global::Com.Hdl.Hdllinphonesdk.Core.Callback.RegistrationCallback registrationCallback)
{
const string __id = "addRegistrationCallback.(Lcom/hdl/hdllinphonesdk/core/callback/RegistrationCallback;)V";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue ((registrationCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object) registrationCallback).Handle);
_members.StaticMethods.InvokeVoidMethod (__id, __args);
} finally {
global::System.GC.KeepAlive (registrationCallback);
}
}
static Delegate cb_enableDeviceRingtone_Z;
#pragma warning disable 0169
static Delegate GetEnableDeviceRingtone_ZHandler ()
{
if (cb_enableDeviceRingtone_Z == null)
cb_enableDeviceRingtone_Z = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPZ_V (n_EnableDeviceRingtone_Z));
return cb_enableDeviceRingtone_Z;
}
static void n_EnableDeviceRingtone_Z (IntPtr jnienv, IntPtr native__this, bool use)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
__this.EnableDeviceRingtone (use);
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='enableDeviceRingtone' and count(parameter)=1 and parameter[1][@type='boolean']]"
[Register ("enableDeviceRingtone", "(Z)V", "GetEnableDeviceRingtone_ZHandler")]
public virtual unsafe void EnableDeviceRingtone (bool use)
{
const string __id = "enableDeviceRingtone.(Z)V";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue (use);
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
} finally {
}
}
static Delegate cb_initCore;
#pragma warning disable 0169
static Delegate GetInitCoreHandler ()
{
if (cb_initCore == null)
cb_initCore = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_InitCore));
return cb_initCore;
}
static void n_InitCore (IntPtr jnienv, IntPtr native__this)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
__this.InitCore ();
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='initCore' and count(parameter)=0]"
[Register ("initCore", "()V", "GetInitCoreHandler")]
public virtual unsafe void InitCore ()
{
const string __id = "initCore.()V";
try {
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
} finally {
}
}
static Delegate cb_onBind_Landroid_content_Intent_;
#pragma warning disable 0169
static Delegate GetOnBind_Landroid_content_Intent_Handler ()
{
if (cb_onBind_Landroid_content_Intent_ == null)
cb_onBind_Landroid_content_Intent_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_L (n_OnBind_Landroid_content_Intent_));
return cb_onBind_Landroid_content_Intent_;
}
static IntPtr n_OnBind_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);
IntPtr __ret = JNIEnv.ToLocalJniHandle (__this.OnBind (intent));
return __ret;
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='onBind' and count(parameter)=1 and parameter[1][@type='android.content.Intent']]"
[Register ("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler")]
public override unsafe global::Android.OS.IBinder OnBind (global::Android.Content.Intent intent)
{
const string __id = "onBind.(Landroid/content/Intent;)Landroid/os/IBinder;";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue ((intent == null) ? IntPtr.Zero : ((global::Java.Lang.Object) intent).Handle);
var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, __args);
return global::Java.Lang.Object.GetObject (__rm.Handle, JniHandleOwnership.TransferLocalRef);
} finally {
global::System.GC.KeepAlive (intent);
}
}
static Delegate cb_removeAllCallback;
#pragma warning disable 0169
static Delegate GetRemoveAllCallbackHandler ()
{
if (cb_removeAllCallback == null)
cb_removeAllCallback = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_V (n_RemoveAllCallback));
return cb_removeAllCallback;
}
static void n_RemoveAllCallback (IntPtr jnienv, IntPtr native__this)
{
var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
__this.RemoveAllCallback ();
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='removeAllCallback' and count(parameter)=0]"
[Register ("removeAllCallback", "()V", "GetRemoveAllCallbackHandler")]
public virtual unsafe void RemoveAllCallback ()
{
const string __id = "removeAllCallback.()V";
try {
_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
} finally {
}
}
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='removePhoneCallback' and count(parameter)=0]"
[Register ("removePhoneCallback", "()V", "")]
public static unsafe void RemovePhoneCallback ()
{
const string __id = "removePhoneCallback.()V";
try {
_members.StaticMethods.InvokeVoidMethod (__id, null);
} finally {
}
}
// Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.core.service']/class[@name='HDLLinphoneService']/method[@name='removeRegistrationCallback' and count(parameter)=0]"
[Register ("removeRegistrationCallback", "()V", "")]
public static unsafe void RemoveRegistrationCallback ()
{
const string __id = "removeRegistrationCallback.()V";
try {
_members.StaticMethods.InvokeVoidMethod (__id, null);
} finally {
}
}
}
}