• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Runtime.JValue类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Android.Runtime.JValue的典型用法代码示例。如果您正苦于以下问题:C# JValue类的具体用法?C# JValue怎么用?C# JValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JValue类属于Android.Runtime命名空间,在下文中一共展示了JValue类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: BitmapDrawableResource

		public unsafe BitmapDrawableResource (global::Android.Graphics.Drawables.BitmapDrawable p0, global::Com.Bumptech.Glide.Load.Engine.Bitmap_recycle.IBitmapPool p1)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [2];
				__args [0] = new JValue (p0);
				__args [1] = new JValue (p1);
				if (GetType () != typeof (BitmapDrawableResource)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/graphics/drawable/BitmapDrawable;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/graphics/drawable/BitmapDrawable;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V", __args);
					return;
				}

				if (id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_ == IntPtr.Zero)
					id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/graphics/drawable/BitmapDrawable;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_, __args);
			} finally {
			}
		}
开发者ID:thanhdatbkhn,项目名称:GlideXamarinBinding,代码行数:27,代码来源:Com.Bumptech.Glide.Load.Resource.Bitmap.BitmapDrawableResource.cs


示例2: ViESurfaceRenderer

		public unsafe ViESurfaceRenderer (global::Android.Views.SurfaceView p0)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [1];
				__args [0] = new JValue (p0);
				if (GetType () != typeof (ViESurfaceRenderer)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/view/SurfaceView;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/view/SurfaceView;)V", __args);
					return;
				}

				if (id_ctor_Landroid_view_SurfaceView_ == IntPtr.Zero)
					id_ctor_Landroid_view_SurfaceView_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/view/SurfaceView;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_view_SurfaceView_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_view_SurfaceView_, __args);
			} finally {
			}
		}
开发者ID:akonsand,项目名称:Peer.Net,代码行数:26,代码来源:Org.Webrtc.Videoengine.ViESurfaceRenderer.cs


示例3: ImageVideoFetcher

			public unsafe ImageVideoFetcher (global::Com.Bumptech.Glide.Load.Data.IDataFetcher p0, global::Com.Bumptech.Glide.Load.Data.IDataFetcher p1)
				: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
			{
				if (Handle != IntPtr.Zero)
					return;

				try {
					JValue* __args = stackalloc JValue [2];
					__args [0] = new JValue (p0);
					__args [1] = new JValue (p1);
					if (GetType () != typeof (ImageVideoFetcher)) {
						SetHandle (
								global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Lcom/bumptech/glide/load/data/DataFetcher;Lcom/bumptech/glide/load/data/DataFetcher;)V", __args),
								JniHandleOwnership.TransferLocalRef);
						global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Lcom/bumptech/glide/load/data/DataFetcher;Lcom/bumptech/glide/load/data/DataFetcher;)V", __args);
						return;
					}

					if (id_ctor_Lcom_bumptech_glide_load_data_DataFetcher_Lcom_bumptech_glide_load_data_DataFetcher_ == IntPtr.Zero)
						id_ctor_Lcom_bumptech_glide_load_data_DataFetcher_Lcom_bumptech_glide_load_data_DataFetcher_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Lcom/bumptech/glide/load/data/DataFetcher;Lcom/bumptech/glide/load/data/DataFetcher;)V");
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Lcom_bumptech_glide_load_data_DataFetcher_Lcom_bumptech_glide_load_data_DataFetcher_, __args),
							JniHandleOwnership.TransferLocalRef);
					JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Lcom_bumptech_glide_load_data_DataFetcher_Lcom_bumptech_glide_load_data_DataFetcher_, __args);
				} finally {
				}
			}
开发者ID:thanhdatbkhn,项目名称:GlideXamarinBinding,代码行数:27,代码来源:Com.Bumptech.Glide.Load.Model.ImageVideoModelLoader.cs


示例4: ViewPropertyAnimationFactory

		public unsafe ViewPropertyAnimationFactory (global::Com.Bumptech.Glide.Request.Animation.ViewPropertyAnimation.IAnimator p0)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [1];
				__args [0] = new JValue (p0);
				if (GetType () != typeof (ViewPropertyAnimationFactory)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Lcom/bumptech/glide/request/animation/ViewPropertyAnimation$Animator;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Lcom/bumptech/glide/request/animation/ViewPropertyAnimation$Animator;)V", __args);
					return;
				}

				if (id_ctor_Lcom_bumptech_glide_request_animation_ViewPropertyAnimation_Animator_ == IntPtr.Zero)
					id_ctor_Lcom_bumptech_glide_request_animation_ViewPropertyAnimation_Animator_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Lcom/bumptech/glide/request/animation/ViewPropertyAnimation$Animator;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Lcom_bumptech_glide_request_animation_ViewPropertyAnimation_Animator_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Lcom_bumptech_glide_request_animation_ViewPropertyAnimation_Animator_, __args);
			} finally {
			}
		}
开发者ID:thanhdatbkhn,项目名称:GlideXamarinBinding,代码行数:26,代码来源:Com.Bumptech.Glide.Request.Animation.ViewPropertyAnimationFactory.cs


示例5: RecognitionResults

		public unsafe RecognitionResults (global::Com.Microblink.Recognizers.BaseRecognitionResult[] p0, global::Com.Microblink.View.Recognition.RecognitionType p1)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			IntPtr native_p0 = JNIEnv.NewArray (p0);
			try {
				JValue* __args = stackalloc JValue [2];
				__args [0] = new JValue (native_p0);
				__args [1] = new JValue (p1);
				if (GetType () != typeof (RecognitionResults)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "([Lcom/microblink/recognizers/BaseRecognitionResult;Lcom/microblink/view/recognition/RecognitionType;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "([Lcom/microblink/recognizers/BaseRecognitionResult;Lcom/microblink/view/recognition/RecognitionType;)V", __args);
					return;
				}

				if (id_ctor_arrayLcom_microblink_recognizers_BaseRecognitionResult_Lcom_microblink_view_recognition_RecognitionType_ == IntPtr.Zero)
					id_ctor_arrayLcom_microblink_recognizers_BaseRecognitionResult_Lcom_microblink_view_recognition_RecognitionType_ = JNIEnv.GetMethodID (class_ref, "<init>", "([Lcom/microblink/recognizers/BaseRecognitionResult;Lcom/microblink/view/recognition/RecognitionType;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_arrayLcom_microblink_recognizers_BaseRecognitionResult_Lcom_microblink_view_recognition_RecognitionType_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_arrayLcom_microblink_recognizers_BaseRecognitionResult_Lcom_microblink_view_recognition_RecognitionType_, __args);
			} finally {
				if (p0 != null) {
					JNIEnv.CopyArray (native_p0, p0);
					JNIEnv.DeleteLocalRef (native_p0);
				}
			}
		}
开发者ID:AmrReda,项目名称:BlinkID-for-Xamarin,代码行数:32,代码来源:Com.Microblink.Recognizers.RecognitionResults.cs


示例6: MtaSDkException

		public unsafe MtaSDkException (string p0, global::Java.Lang.Throwable p1)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			IntPtr native_p0 = JNIEnv.NewString (p0);
			try {
				JValue* __args = stackalloc JValue [2];
				__args [0] = new JValue (native_p0);
				__args [1] = new JValue (p1);
				if (GetType () != typeof (MtaSDkException)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Ljava/lang/String;Ljava/lang/Throwable;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Ljava/lang/String;Ljava/lang/Throwable;)V", __args);
					return;
				}

				if (id_ctor_Ljava_lang_String_Ljava_lang_Throwable_ == IntPtr.Zero)
					id_ctor_Ljava_lang_String_Ljava_lang_Throwable_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/Throwable;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Ljava_lang_String_Ljava_lang_Throwable_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_Throwable_, __args);
			} finally {
				JNIEnv.DeleteLocalRef (native_p0);
			}
		}
开发者ID:yz1311,项目名称:TencentSDKBinding,代码行数:29,代码来源:Com.Tencent.Stat.MtaSDkException.cs


示例7: base

        public unsafe ˮ͈(long p0, byte[] p1, string p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
                return;

            IntPtr native_p1 = JNIEnv.NewArray (p1);
            IntPtr native_p2 = JNIEnv.NewString (p2);
            try {
                JValue* __args = stackalloc JValue [3];
                __args [0] = new JValue (p0);
                __args [1] = new JValue (native_p1);
                __args [2] = new JValue (native_p2);
                if (GetType () != typeof (ˮ͈)) {
                    SetHandle (
                            global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(J[BLjava/lang/String;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(J[BLjava/lang/String;)V", __args);
                    return;
                }

                if (id_ctor_JarrayBLjava_lang_String_ == IntPtr.Zero)
                    id_ctor_JarrayBLjava_lang_String_ = JNIEnv.GetMethodID (class_ref, "<init>", "(J[BLjava/lang/String;)V");
                SetHandle (
                        global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_JarrayBLjava_lang_String_, __args),
                        JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_JarrayBLjava_lang_String_, __args);
            } finally {
                if (p1 != null) {
                    JNIEnv.CopyArray (native_p1, p1);
                    JNIEnv.DeleteLocalRef (native_p1);
                }
                JNIEnv.DeleteLocalRef (native_p2);
            }
        }
开发者ID:yelkrebb,项目名称:XamTest-,代码行数:35,代码来源:Com.Qcl.VH.Content.ˮ͈.cs


示例8: MRTDRecognitionResult

		public unsafe MRTDRecognitionResult (long p0, bool p1, bool p2)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [3];
				__args [0] = new JValue (p0);
				__args [1] = new JValue (p1);
				__args [2] = new JValue (p2);
				if (GetType () != typeof (MRTDRecognitionResult)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(JZZ)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(JZZ)V", __args);
					return;
				}

				if (id_ctor_JZZ == IntPtr.Zero)
					id_ctor_JZZ = JNIEnv.GetMethodID (class_ref, "<init>", "(JZZ)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_JZZ, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_JZZ, __args);
			} finally {
			}
		}
开发者ID:AmrReda,项目名称:BlinkID-for-Xamarin,代码行数:28,代码来源:Com.Microblink.Recognizers.Blinkid.Mrtd.MRTDRecognitionResult.cs


示例9: base

        public unsafe Ą(global::System.IO.Stream p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
                return;

            IntPtr native_p0 = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle (p0);
            try {
                JValue* __args = stackalloc JValue [1];
                __args [0] = new JValue (native_p0);
                if (GetType () != typeof (Ą)) {
                    SetHandle (
                            global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Ljava/io/InputStream;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Ljava/io/InputStream;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_io_InputStream_ == IntPtr.Zero)
                    id_ctor_Ljava_io_InputStream_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Ljava/io/InputStream;)V");
                SetHandle (
                        global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Ljava_io_InputStream_, __args),
                        JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Ljava_io_InputStream_, __args);
            } finally {
                JNIEnv.DeleteLocalRef (native_p0);
            }
        }
开发者ID:yelkrebb,项目名称:XamTest-,代码行数:28,代码来源:Com.Qcl.VH.MD.Vitalograph.Ą.cs


示例10: DiskLruCacheWrapper

		protected unsafe DiskLruCacheWrapper (global::Java.IO.File p0, int p1)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [2];
				__args [0] = new JValue (p0);
				__args [1] = new JValue (p1);
				if (GetType () != typeof (DiskLruCacheWrapper)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Ljava/io/File;I)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Ljava/io/File;I)V", __args);
					return;
				}

				if (id_ctor_Ljava_io_File_I == IntPtr.Zero)
					id_ctor_Ljava_io_File_I = JNIEnv.GetMethodID (class_ref, "<init>", "(Ljava/io/File;I)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Ljava_io_File_I, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Ljava_io_File_I, __args);
			} finally {
			}
		}
开发者ID:thanhdatbkhn,项目名称:GlideXamarinBinding,代码行数:27,代码来源:Com.Bumptech.Glide.Load.Engine.Cache.DiskLruCacheWrapper.cs


示例11: ZipShort

		public unsafe ZipShort (int p0)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [1];
				__args [0] = new JValue (p0);
				if (GetType () != typeof (ZipShort)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(I)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(I)V", __args);
					return;
				}

				if (id_ctor_I == IntPtr.Zero)
					id_ctor_I = JNIEnv.GetMethodID (class_ref, "<init>", "(I)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_I, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_I, __args);
			} finally {
			}
		}
开发者ID:yz1311,项目名称:TencentSDKBinding,代码行数:26,代码来源:Com.Tencent.Open.Utils.ZipShort.cs


示例12: MapView

		public unsafe MapView (global::Android.Content.Context p0, global::Com.Baidu.Mapapi.Map.BaiduMapOptions p1)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [2];
				__args [0] = new JValue (p0);
				__args [1] = new JValue (p1);
				if (GetType () != typeof (MapView)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/content/Context;Lcom/baidu/mapapi/map/BaiduMapOptions;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/content/Context;Lcom/baidu/mapapi/map/BaiduMapOptions;)V", __args);
					return;
				}

				if (id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_ == IntPtr.Zero)
					id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/content/Context;Lcom/baidu/mapapi/map/BaiduMapOptions;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_, __args);
			} finally {
			}
		}
开发者ID:lq-ever,项目名称:CommunityCenter,代码行数:27,代码来源:Com.Baidu.Mapapi.Map.MapView.cs


示例13: BitmapEncoder

		public unsafe BitmapEncoder (global::Android.Graphics.Bitmap.CompressFormat p0, int p1)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [2];
				__args [0] = new JValue (p0);
				__args [1] = new JValue (p1);
				if (GetType () != typeof (BitmapEncoder)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/graphics/Bitmap$CompressFormat;I)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/graphics/Bitmap$CompressFormat;I)V", __args);
					return;
				}

				if (id_ctor_Landroid_graphics_Bitmap_CompressFormat_I == IntPtr.Zero)
					id_ctor_Landroid_graphics_Bitmap_CompressFormat_I = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/graphics/Bitmap$CompressFormat;I)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_graphics_Bitmap_CompressFormat_I, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_graphics_Bitmap_CompressFormat_I, __args);
			} finally {
			}
		}
开发者ID:thanhdatbkhn,项目名称:GlideXamarinBinding,代码行数:27,代码来源:Com.Bumptech.Glide.Load.Resource.Bitmap.BitmapEncoder.cs


示例14: BusLineOverlay

		public unsafe BusLineOverlay (global::Com.Baidu.Mapapi.Map.BaiduMap p0)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [1];
				__args [0] = new JValue (p0);
				if (GetType () != typeof (BusLineOverlay)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Lcom/baidu/mapapi/map/BaiduMap;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Lcom/baidu/mapapi/map/BaiduMap;)V", __args);
					return;
				}

				if (id_ctor_Lcom_baidu_mapapi_map_BaiduMap_ == IntPtr.Zero)
					id_ctor_Lcom_baidu_mapapi_map_BaiduMap_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Lcom/baidu/mapapi/map/BaiduMap;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Lcom_baidu_mapapi_map_BaiduMap_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Lcom_baidu_mapapi_map_BaiduMap_, __args);
			} finally {
			}
		}
开发者ID:lq-ever,项目名称:CommunityCenter,代码行数:26,代码来源:Com.Baidu.Mapapi.Overlayutil.BusLineOverlay.cs


示例15: ConcreteAnimationFactory

			public unsafe ConcreteAnimationFactory (global::Android.Views.Animations.Animation p0)
				: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
			{
				if (Handle != IntPtr.Zero)
					return;

				try {
					JValue* __args = stackalloc JValue [1];
					__args [0] = new JValue (p0);
					if (GetType () != typeof (ConcreteAnimationFactory)) {
						SetHandle (
								global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/view/animation/Animation;)V", __args),
								JniHandleOwnership.TransferLocalRef);
						global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/view/animation/Animation;)V", __args);
						return;
					}

					if (id_ctor_Landroid_view_animation_Animation_ == IntPtr.Zero)
						id_ctor_Landroid_view_animation_Animation_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/view/animation/Animation;)V");
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_view_animation_Animation_, __args),
							JniHandleOwnership.TransferLocalRef);
					JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_view_animation_Animation_, __args);
				} finally {
				}
			}
开发者ID:thanhdatbkhn,项目名称:GlideXamarinBinding,代码行数:26,代码来源:Com.Bumptech.Glide.Request.Animation.ViewAnimationFactory.cs


示例16: invoke

        public static void invoke(Context context)
        {
            if (jc_class != IntPtr.Zero) {
                Log.Info (LOG_TAG, "Found class");
            } else {
                Log.Info (LOG_TAG, "Failed to find class");
                return;
            }
            if (method_invoke != IntPtr.Zero) {
                Log.Info (LOG_TAG, "Found invoke method");
            } else {
                Log.Info (LOG_TAG, "Failed to find invoke method");
                return;
            }

            // Load the key from the resources
            byte[] applicationKey = null;
            var resId = context.Resources.GetIdentifier("key", "raw", context.PackageName);
            using (var stream = context.Resources.OpenRawResource(resId))
            {
                using (var ms = new MemoryStream())
                {
                    stream.CopyTo(ms);
                    applicationKey = ms.ToArray();
                }
            }

            JValue byteArray = new JValue (Java.Lang.Object.FromArray (applicationKey));
            JNIEnv.CallStaticVoidMethod (jc_class, method_invoke, byteArray);
        }
开发者ID:Grishu,项目名称:ouya-sdk-examples,代码行数:30,代码来源:AsyncCppOuyaSetApplicationKey.cs


示例17: OnResponse

        public void OnResponse(Object p0)
        {
            if (id_onResponse_Landroid_view_View_ == IntPtr.Zero)
            {
                id_onResponse_Landroid_view_View_ = JNIEnv.GetMethodID(class_ref, "onResponse", "(Landroid/view/View;)V");
            }
                
            try
            {
                unsafe
                {
                    JValue* args = stackalloc JValue[1];
                    args[0] = new JValue(p0);

                    if (GetType() == ThresholdType)
                    {
                        JNIEnv.CallVoidMethod(Handle, id_onResponse_Landroid_view_View_, args);
                    }

                    else
                    {
                        JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onClick", "(Landroid/view/View;)V"), args);
                    }
                }
            }
            finally
            {
            }

        }
开发者ID:apcurium,项目名称:xamarin-bindings,代码行数:30,代码来源:PaymentButton.Fixups.cs


示例18: FeatureNotSupportedException

		public unsafe FeatureNotSupportedException (global::Com.Microblink.View.NotSupportedReason p0, global::Java.Lang.Throwable p1)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [2];
				__args [0] = new JValue (p0);
				__args [1] = new JValue (p1);
				if (GetType () != typeof (FeatureNotSupportedException)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Lcom/microblink/view/NotSupportedReason;Ljava/lang/Throwable;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Lcom/microblink/view/NotSupportedReason;Ljava/lang/Throwable;)V", __args);
					return;
				}

				if (id_ctor_Lcom_microblink_view_NotSupportedReason_Ljava_lang_Throwable_ == IntPtr.Zero)
					id_ctor_Lcom_microblink_view_NotSupportedReason_Ljava_lang_Throwable_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Lcom/microblink/view/NotSupportedReason;Ljava/lang/Throwable;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Lcom_microblink_view_NotSupportedReason_Ljava_lang_Throwable_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Lcom_microblink_view_NotSupportedReason_Ljava_lang_Throwable_, __args);
			} finally {
			}
		}
开发者ID:AmrReda,项目名称:BlinkID-for-Xamarin,代码行数:27,代码来源:Com.Microblink.Recognition.FeatureNotSupportedException.cs


示例19: PointSet

		public unsafe PointSet (global::System.Collections.Generic.IList<global::Com.Microblink.Geometry.Point> p0)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			IntPtr native_p0 = global::Android.Runtime.JavaList<global::Com.Microblink.Geometry.Point>.ToLocalJniHandle (p0);
			try {
				JValue* __args = stackalloc JValue [1];
				__args [0] = new JValue (native_p0);
				if (GetType () != typeof (PointSet)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Ljava/util/List;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Ljava/util/List;)V", __args);
					return;
				}

				if (id_ctor_Ljava_util_List_ == IntPtr.Zero)
					id_ctor_Ljava_util_List_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Ljava/util/List;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Ljava_util_List_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Ljava_util_List_, __args);
			} finally {
				JNIEnv.DeleteLocalRef (native_p0);
			}
		}
开发者ID:AmrReda,项目名称:BlinkID-for-Xamarin,代码行数:28,代码来源:Com.Microblink.Geometry.PointSet.cs


示例20: UserInfo

		public unsafe UserInfo (global::Android.Content.Context p0, global::Com.Tencent.Connect.Auth.QQAuth p1, global::Com.Tencent.Connect.Auth.QQToken p2)
			: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			try {
				JValue* __args = stackalloc JValue [3];
				__args [0] = new JValue (p0);
				__args [1] = new JValue (p1);
				__args [2] = new JValue (p2);
				if (GetType () != typeof (UserInfo)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/content/Context;Lcom/tencent/connect/auth/QQAuth;Lcom/tencent/connect/auth/QQToken;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/content/Context;Lcom/tencent/connect/auth/QQAuth;Lcom/tencent/connect/auth/QQToken;)V", __args);
					return;
				}

				if (id_ctor_Landroid_content_Context_Lcom_tencent_connect_auth_QQAuth_Lcom_tencent_connect_auth_QQToken_ == IntPtr.Zero)
					id_ctor_Landroid_content_Context_Lcom_tencent_connect_auth_QQAuth_Lcom_tencent_connect_auth_QQToken_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/content/Context;Lcom/tencent/connect/auth/QQAuth;Lcom/tencent/connect/auth/QQToken;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_content_Context_Lcom_tencent_connect_auth_QQAuth_Lcom_tencent_connect_auth_QQToken_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_content_Context_Lcom_tencent_connect_auth_QQAuth_Lcom_tencent_connect_auth_QQToken_, __args);
			} finally {
			}
		}
开发者ID:yz1311,项目名称:TencentSDKBinding,代码行数:28,代码来源:Com.Tencent.Connect.UserInfo.cs



注:本文中的Android.Runtime.JValue类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Views.KeyEvent类代码示例发布时间:2022-05-24
下一篇:
C# OS.Handler类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap