在PCL项目中获取Android上下文 [英] Get Android Context in PCL project

查看:131
本文介绍了在PCL项目中获取Android上下文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Xamarin.Forms PCL项目中获取Android上下文?

How do I get the Android context from the Xamarin.Forms PCL project?

我试图搜索stackoverflow,但没有一个适合我的搜索.

I have tried to search stackoverflow but none fit my search.

我是Xamarin.Forms的新手,我试图学习访问需要具有Android上下文的android自定义类

I am new to Xamarin.Forms and I am trying to learn accessing custom class for android where I need to have an Android Context

推荐答案

您可以通过以下方式在android项目中访问:

You can access in android project with:

Xamarin.Forms.Forms.Context

这篇关于在PCL项目中获取Android上下文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆