ContextUtils.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:android-wheels 作者:
/**
 * Obtain a {@link SubscriptionManager} instance associated with specified {@link Context}
 *
 * @param context Context
 * @return {@link SubscriptionManager} associated with specified {@link Context}
 * @throws InvalidContextException if {@link SubscriptionManager} can't be obtained
 *                                 from specified {@link Context}
 */
@NonNull
@RequiresApi(Build.VERSION_CODES.LOLLIPOP_MR1)
public static SubscriptionManager getSubscriptionManager(@NonNull Context context) {
    return validate(context.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号