public virtual unsafe void RequestInfo(string callingPackageName, global::Android.OS.Bundle requestedPackage, global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback @callback) { if (id_requestInfo_Ljava_lang_String_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_ == IntPtr.Zero) { id_requestInfo_Ljava_lang_String_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_ = JNIEnv.GetMethodID(class_ref, "requestInfo", "(Ljava/lang/String;Landroid/os/Bundle;Lcom/google/android/play/core/install/protocol/IInstallServiceCallback;)V"); } IntPtr native_callingPackageName = JNIEnv.NewString(callingPackageName); try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(native_callingPackageName); __args [1] = new JValue(requestedPackage); __args [2] = new JValue(@callback); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_requestInfo_Ljava_lang_String_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "requestInfo", "(Ljava/lang/String;Landroid/os/Bundle;Lcom/google/android/play/core/install/protocol/IInstallServiceCallback;)V"), __args); } } finally { JNIEnv.DeleteLocalRef(native_callingPackageName); } }
static void n_RequestInstall_Ljava_lang_String_Ljava_util_List_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_callingPackageName, IntPtr native_packages, IntPtr native_options, IntPtr native__callback) { global::Com.Google.Android.Play.Core.Install.Protocol.InstallServiceStub.Proxy __this = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Play.Core.Install.Protocol.InstallServiceStub.Proxy> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string callingPackageName = JNIEnv.GetString(native_callingPackageName, JniHandleOwnership.DoNotTransfer); var packages = global::Android.Runtime.JavaList <global::Android.OS.Bundle> .FromJniHandle(native_packages, JniHandleOwnership.DoNotTransfer); global::Android.OS.Bundle options = global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (native_options, JniHandleOwnership.DoNotTransfer); global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback @callback = (global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback)global::Java.Lang.Object.GetObject <global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback> (native__callback, JniHandleOwnership.DoNotTransfer); __this.RequestInstall(callingPackageName, packages, options, @callback); }
static void n_RequestInfo_Ljava_lang_String_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_callingPackageName, IntPtr native_requestedPackage, IntPtr native__callback) { global::Com.Google.Android.Play.Core.Install.Protocol.IInstallService __this = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Play.Core.Install.Protocol.IInstallService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string callingPackageName = JNIEnv.GetString(native_callingPackageName, JniHandleOwnership.DoNotTransfer); global::Android.OS.Bundle requestedPackage = global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (native_requestedPackage, JniHandleOwnership.DoNotTransfer); global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback @callback = (global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback)global::Java.Lang.Object.GetObject <global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback> (native__callback, JniHandleOwnership.DoNotTransfer); __this.RequestInfo(callingPackageName, requestedPackage, @callback); }
public unsafe void RequestInstall(string callingPackageName, global::System.Collections.Generic.IList <global::Android.OS.Bundle> packages, global::Android.OS.Bundle options, global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback @callback) { if (id_requestInstall_Ljava_lang_String_Ljava_util_List_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_ == IntPtr.Zero) { id_requestInstall_Ljava_lang_String_Ljava_util_List_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_ = JNIEnv.GetMethodID(class_ref, "requestInstall", "(Ljava/lang/String;Ljava/util/List;Landroid/os/Bundle;Lcom/google/android/play/core/install/protocol/IInstallServiceCallback;)V"); } IntPtr native_callingPackageName = JNIEnv.NewString(callingPackageName); IntPtr native_packages = global::Android.Runtime.JavaList <global::Android.OS.Bundle> .ToLocalJniHandle(packages); JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(native_callingPackageName); __args [1] = new JValue(native_packages); __args [2] = new JValue(options); __args [3] = new JValue(@callback); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_requestInstall_Ljava_lang_String_Ljava_util_List_Landroid_os_Bundle_Lcom_google_android_play_core_install_protocol_IInstallServiceCallback_, __args); JNIEnv.DeleteLocalRef(native_callingPackageName); JNIEnv.DeleteLocalRef(native_packages); }
public abstract void RequestInstall(string callingPackageName, global::System.Collections.Generic.IList <global::Android.OS.Bundle> packages, global::Android.OS.Bundle options, global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback @callback);
public abstract void RequestInfo(string callingPackageName, global::Android.OS.Bundle requestedPackage, global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback @callback);
static IntPtr n_AsBinder(IntPtr jnienv, IntPtr native__this) { global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback __this = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.AsBinder())); }
static void n_OnRequestInstall_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_result) { global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback __this = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.OS.Bundle result = global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (native_result, JniHandleOwnership.DoNotTransfer); __this.OnRequestInstall(result); }
public static unsafe global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback AsInterface(global::Android.OS.IBinder obj) { if (id_asInterface_Landroid_os_IBinder_ == IntPtr.Zero) { id_asInterface_Landroid_os_IBinder_ = JNIEnv.GetStaticMethodID(class_ref, "asInterface", "(Landroid/os/IBinder;)Lcom/google/android/play/core/install/protocol/IInstallServiceCallback;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(obj); global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback __ret = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Play.Core.Install.Protocol.IInstallServiceCallback> (JNIEnv.CallStaticObjectMethod(class_ref, id_asInterface_Landroid_os_IBinder_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }