语言

SubscriptionManager.From(Context) 方法

定义

此成员已弃用。

[Android.Runtime.Register("from", "(Landroid/content/Context;)Landroid/telephony/SubscriptionManager;", "", ApiSince=22)]
public static Android.Telephony.SubscriptionManager? From(Android.Content.Context? context);
[<Android.Runtime.Register("from", "(Landroid/content/Context;)Landroid/telephony/SubscriptionManager;", "", ApiSince=22)>]
static member From : Android.Content.Context -> Android.Telephony.SubscriptionManager

参数

context
Context

从中请求订阅服务的上下文。

返回

上下文提供的订阅管理器;如果服务不可用,则为 null。

特性

注解

此成员已弃用。 开发人员应始终直接从中 Context#getSystemService(Class)获取引用。

Java文档android.telephony.SubscriptionManager.from(android.content.Context)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于