public unsafe 鷭(global::Com.Qcl.VH.Service.NetworkService __self, global::Android.OS.Looper p1)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(__self);
                    __args [1] = new JValue(p1);
                    if (GetType() != typeof(鷭))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/os/Looper;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/os/Looper;)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_qcl_vh_service_NetworkService_Landroid_os_Looper_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_qcl_vh_service_NetworkService_Landroid_os_Looper_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/qcl/vh/service/NetworkService;Landroid/os/Looper;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_qcl_vh_service_NetworkService_Landroid_os_Looper_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_qcl_vh_service_NetworkService_Landroid_os_Looper_, __args);
                } finally {
                }
            }
Ejemplo n.º 2
0
            public unsafe DispatchQueueHandler(global::Android.OS.Looper p0, global::Com.Liveperson.Infra.Utils.DispatchQueue p1)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(p1);
                    if (((object)this).GetType() != typeof(DispatchQueueHandler))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/os/Looper;Lcom/liveperson/infra/utils/DispatchQueue;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/os/Looper;Lcom/liveperson/infra/utils/DispatchQueue;)V", __args);
                        return;
                    }

                    if (id_ctor_Landroid_os_Looper_Lcom_liveperson_infra_utils_DispatchQueue_ == IntPtr.Zero)
                    {
                        id_ctor_Landroid_os_Looper_Lcom_liveperson_infra_utils_DispatchQueue_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/os/Looper;Lcom/liveperson/infra/utils/DispatchQueue;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_os_Looper_Lcom_liveperson_infra_utils_DispatchQueue_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_os_Looper_Lcom_liveperson_infra_utils_DispatchQueue_, __args);
                } finally {
                }
            }
 static void n_RequestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
 {
     global::Com.Mapbox.Android.Core.Location.ILocationEngine         __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.ILocationEngine> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mapbox.Android.Core.Location.LocationEngineRequest   p0     = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.LocationEngineRequest> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback p1     = (global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback)global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback> (native_p1, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Looper p2 = global::Java.Lang.Object.GetObject <global::Android.OS.Looper> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.RequestLocationUpdates(p0, p1, p2);
 }
        protected virtual unsafe void OnLooperPrepared(global::Android.OS.Looper looper)
        {
            const string __id = "onLooperPrepared.(Landroid/os/Looper;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((looper == null) ? IntPtr.Zero : ((global::Java.Lang.Object)looper).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public unsafe MainThreadSupportAndroidHandlerMainThreadSupport(global::Android.OS.Looper looper)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/os/Looper;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((looper == null) ? IntPtr.Zero : ((global::Java.Lang.Object)looper).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 6
0
 public static unsafe void RequestSdk(global::Com.Salesforce.Marketingcloud.MarketingCloudSdk.IWhenReadyListener p0, global::Android.OS.Looper p1)
 {
     if (id_requestSdk_Lcom_salesforce_marketingcloud_MarketingCloudSdk_WhenReadyListener_Landroid_os_Looper_ == IntPtr.Zero)
     {
         id_requestSdk_Lcom_salesforce_marketingcloud_MarketingCloudSdk_WhenReadyListener_Landroid_os_Looper_ = JNIEnv.GetStaticMethodID(class_ref, "requestSdk", "(Lcom/salesforce/marketingcloud/MarketingCloudSdk$WhenReadyListener;Landroid/os/Looper;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallStaticVoidMethod(class_ref, id_requestSdk_Lcom_salesforce_marketingcloud_MarketingCloudSdk_WhenReadyListener_Landroid_os_Looper_, __args);
     } finally {
     }
 }
 static void n_OnLooperPrepared_Landroid_os_Looper_(IntPtr jnienv, IntPtr native__this, IntPtr native_looper)
 {
     global::Com.Mob.Tools.MobHandlerThread __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.MobHandlerThread> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Looper looper = global::Java.Lang.Object.GetObject <global::Android.OS.Looper> (native_looper, JniHandleOwnership.DoNotTransfer);
     __this.OnLooperPrepared(looper);
 }
Ejemplo n.º 8
0
 public virtual global::Android.Net.Wifi.P2p.WifiP2pManager.Channel Initialize(global::Android.Content.Context srcContext, global::Android.OS.Looper srcLooper, global::Android.Net.Wifi.P2p.WifiP2pManager.IChannelListener listener)                         /* MethodBuilder.Create */
 {
     return(default(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel));
 }
        public unsafe void RequestLocationUpdates(global::Com.Mapbox.Android.Core.Location.LocationEngineRequest p0, global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback p1, global::Android.OS.Looper p2)
        {
            if (id_requestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_ == IntPtr.Zero)
            {
                id_requestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_ = JNIEnv.GetMethodID(class_ref, "requestLocationUpdates", "(Lcom/mapbox/android/core/location/LocationEngineRequest;Lcom/mapbox/android/core/location/LocationEngineCallback;Landroid/os/Looper;)V");
            }
            JValue *__args = stackalloc JValue [3];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_requestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_, __args);
        }
        public unsafe int RequestSingleFreshLocation(global::Com.Tencent.Map.Geolocation.TencentLocationRequest p0, global::Com.Tencent.Map.Geolocation.ITencentLocationListener p1, global::Android.OS.Looper p2)
        {
            const string __id = "requestSingleFreshLocation.(Lcom/tencent/map/geolocation/TencentLocationRequest;Lcom/tencent/map/geolocation/TencentLocationListener;Landroid/os/Looper;)I";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                var __rm = _members.InstanceMethods.InvokeNonvirtualInt32Method(__id, this, __args);
                return(__rm);
            } finally {
            }
        }
        protected unsafe HandlerPoster(global::Com.Vivalnk.Sdk.Common.Eventbus.EventBus eventBus, global::Android.OS.Looper looper, int maxMillisInsideHandleMessage)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/vivalnk/sdk/common/eventbus/EventBus;Landroid/os/Looper;I)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((eventBus == null) ? IntPtr.Zero : ((global::Java.Lang.Object)eventBus).Handle);
                __args [1] = new JniArgumentValue((looper == null) ? IntPtr.Zero : ((global::Java.Lang.Object)looper).Handle);
                __args [2] = new JniArgumentValue(maxMillisInsideHandleMessage);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }