public unsafe void RemoveListener(string p0, global::Com.Google.Android.Exoplayer.Upstream.Cache.ICacheListener p1) { if (id_removeListener_Ljava_lang_String_Lcom_google_android_exoplayer_upstream_cache_Cache_Listener_ == IntPtr.Zero) { id_removeListener_Ljava_lang_String_Lcom_google_android_exoplayer_upstream_cache_Cache_Listener_ = JNIEnv.GetMethodID(class_ref, "removeListener", "(Ljava/lang/String;Lcom/google/android/exoplayer/upstream/cache/Cache$Listener;)V"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_removeListener_Ljava_lang_String_Lcom_google_android_exoplayer_upstream_cache_Cache_Listener_, __args); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public unsafe global::Java.Util.INavigableSet AddListener(string p0, global::Com.Google.Android.Exoplayer.Upstream.Cache.ICacheListener p1) { if (id_addListener_Ljava_lang_String_Lcom_google_android_exoplayer_upstream_cache_Cache_Listener_ == IntPtr.Zero) { id_addListener_Ljava_lang_String_Lcom_google_android_exoplayer_upstream_cache_Cache_Listener_ = JNIEnv.GetMethodID(class_ref, "addListener", "(Ljava/lang/String;Lcom/google/android/exoplayer/upstream/cache/Cache$Listener;)Ljava/util/NavigableSet;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); global::Java.Util.INavigableSet __ret = global::Java.Lang.Object.GetObject <global::Java.Util.INavigableSet> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_addListener_Ljava_lang_String_Lcom_google_android_exoplayer_upstream_cache_Cache_Listener_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }