| | |
| | | // Metadata.xml XPath class reference: path="/api/package[@name='com.hdl.hdllinphonesdk']/class[@name='HDLLinphoneKit']" |
| | | [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/HDLLinphoneKit", DoNotGenerateAcw=true)] |
| | | public partial class HDLLinphoneKit : global::Java.Lang.Object { |
| | | |
| | | // Metadata.xml XPath field reference: path="/api/package[@name='com.hdl.hdllinphonesdk']/class[@name='HDLLinphoneKit']/field[@name='audioManager']" |
| | | [Register ("audioManager")] |
| | | public global::Android.Media.AudioManager AudioManager { |
| | | get { |
| | | const string __id = "audioManager.Landroid/media/AudioManager;"; |
| | | |
| | | var __v = _members.InstanceFields.GetObjectValue (__id, this); |
| | | return global::Java.Lang.Object.GetObject<global::Android.Media.AudioManager> (__v.Handle, JniHandleOwnership.TransferLocalRef); |
| | | } |
| | | set { |
| | | const string __id = "audioManager.Landroid/media/AudioManager;"; |
| | | |
| | | IntPtr native_value = global::Android.Runtime.JNIEnv.ToLocalJniHandle (value); |
| | | try { |
| | | _members.InstanceFields.SetValue (__id, this, new JniObjectReference (native_value)); |
| | | } finally { |
| | | global::Android.Runtime.JNIEnv.DeleteLocalRef (native_value); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // Metadata.xml XPath field reference: path="/api/package[@name='com.hdl.hdllinphonesdk']/class[@name='HDLLinphoneKit']/field[@name='HDLLinphoneKitNAME']" |
| | | [Register ("HDLLinphoneKitNAME")] |
| | | public const string HDLLinphoneKitNAME = (string) "HDLLinphoneKit"; |
| | |
| | | _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args); |
| | | } finally { |
| | | global::System.GC.KeepAlive (value); |
| | | } |
| | | } |
| | | } |
| | | |
| | | static Delegate cb_getRingerMode; |
| | | #pragma warning disable 0169 |
| | | static Delegate GetGetRingerModeHandler () |
| | | { |
| | | if (cb_getRingerMode == null) |
| | | cb_getRingerMode = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_I (n_GetRingerMode)); |
| | | return cb_getRingerMode; |
| | | } |
| | | |
| | | static int n_GetRingerMode (IntPtr jnienv, IntPtr native__this) |
| | | { |
| | | var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.HDLLinphoneKit> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); |
| | | return __this.RingerMode; |
| | | } |
| | | #pragma warning restore 0169 |
| | | |
| | | public virtual unsafe int RingerMode { |
| | | // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk']/class[@name='HDLLinphoneKit']/method[@name='getRingerMode' and count(parameter)=0]" |
| | | [Register ("getRingerMode", "()I", "GetGetRingerModeHandler")] |
| | | get { |
| | | const string __id = "getRingerMode.()I"; |
| | | try { |
| | | var __rm = _members.InstanceMethods.InvokeVirtualInt32Method (__id, this, null); |
| | | return __rm; |
| | | } finally { |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | static Delegate cb_sendSipMessage_Ljava_lang_String_Ljava_lang_String_; |
| | | #pragma warning disable 0169 |
| | | static Delegate GetSendSipMessage_Ljava_lang_String_Ljava_lang_String_Handler () |
| | | { |
| | | if (cb_sendSipMessage_Ljava_lang_String_Ljava_lang_String_ == null) |
| | | cb_sendSipMessage_Ljava_lang_String_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPLL_V (n_SendSipMessage_Ljava_lang_String_Ljava_lang_String_)); |
| | | return cb_sendSipMessage_Ljava_lang_String_Ljava_lang_String_; |
| | | } |
| | | |
| | | static void n_SendSipMessage_Ljava_lang_String_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_sipAddress, IntPtr native_message) |
| | | { |
| | | var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.HDLLinphoneKit> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); |
| | | var sipAddress = JNIEnv.GetString (native_sipAddress, JniHandleOwnership.DoNotTransfer); |
| | | var message = JNIEnv.GetString (native_message, JniHandleOwnership.DoNotTransfer); |
| | | __this.SendSipMessage (sipAddress, message); |
| | | } |
| | | #pragma warning restore 0169 |
| | | |
| | | // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk']/class[@name='HDLLinphoneKit']/method[@name='sendSipMessage' and count(parameter)=2 and parameter[1][@type='java.lang.String'] and parameter[2][@type='java.lang.String']]" |
| | | [Register ("sendSipMessage", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSendSipMessage_Ljava_lang_String_Ljava_lang_String_Handler")] |
| | | public virtual unsafe void SendSipMessage (string sipAddress, string message) |
| | | { |
| | | const string __id = "sendSipMessage.(Ljava/lang/String;Ljava/lang/String;)V"; |
| | | IntPtr native_sipAddress = JNIEnv.NewString ((string)sipAddress); |
| | | IntPtr native_message = JNIEnv.NewString ((string)message); |
| | | try { |
| | | JniArgumentValue* __args = stackalloc JniArgumentValue [2]; |
| | | __args [0] = new JniArgumentValue (native_sipAddress); |
| | | __args [1] = new JniArgumentValue (native_message); |
| | | _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args); |
| | | } finally { |
| | | JNIEnv.DeleteLocalRef (native_sipAddress); |
| | | JNIEnv.DeleteLocalRef (native_message); |
| | | } |
| | | } |
| | | |
| | | static Delegate cb_setAccountAndLogin_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_; |
| | | #pragma warning disable 0169 |
| | | static Delegate GetSetAccountAndLogin_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler () |