BluetoothDevice.aliasName未解决的参考

时间:2019-04-12 09:17:12

标签: android android-studio kotlin bluetooth

Kotlin菜鸟在这里。

当我在ctrl+clickBluetoothDevice时,它会打开...

\AppData\Local\Android\Sdk\sources\android-28\android\bluetooth\BluetoothDevice.java

在那里我可以看到...

public String getAliasName()

但是我无法在我的ScanCallback中访问它。为什么不呢?

enter image description here

我将minSdkVersion设置为28。

1 个答案:

答案 0 :(得分:2)

该方法带有@hide注释,因此这意味着该方法在公共API中不可用。在此处详细了解:What does @hide mean in the Android source code?