2

Kotlin noob here.

When I ctrl+click on BluetoothDevice it opens...

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

In there I can see...

public String getAliasName()

Yet I'm unable to access it in my ScanCallback. Why not?

enter image description here

I have minSdkVersion set to 28.

TedTrippin
  • 3,525
  • 5
  • 28
  • 46

1 Answers1

2

The method is annotated with @hide, so it means it's not available in public API. Read more about it here: What does @hide mean in the Android source code?

Derek K
  • 2,756
  • 1
  • 21
  • 37