Java源主场迎战Android SDK中的差异? [英] Java source vs. Android SDK differences?

查看:149
本文介绍了Java源主场迎战Android SDK中的差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我看源$ C ​​$ C为 AudioManager ,有:

If I look at the source code for AudioManager, there is:

@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String VOLUME_CHANGED_ACTION = "android.media.VOLUME_CHANGED_ACTION";

不过,是不可见的由Eclipse的,即使你指定的最低水平SDK

However, is not visible by Eclipse, even when you specify the minimum SDK level.

怎么能这样呢?

是API的这一部分不?

Is this part of the API or not?

感谢

推荐答案

您错过了以上的部分,表明它的@hide不包含在SDK:

You missed the part above, the @hide indicating it is not included in the SDK:

/**
 * @hide Broadcast intent when the volume for a particular stream type changes.
 * Includes the stream, the new volume and previous volumes
 *
 * @see #EXTRA_VOLUME_STREAM_TYPE
 * @see #EXTRA_VOLUME_STREAM_VALUE
 * @see #EXTRA_PREV_VOLUME_STREAM_VALUE
 */

这篇关于Java源主场迎战Android SDK中的差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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