TedTrippin
TedTrippin

Reputation: 3667

BluetoothDevice.aliasName unresolved reference

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.

Upvotes: 2

Views: 507

Answers (1)

Derek K
Derek K

Reputation: 3157

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?

Upvotes: 2

Related Questions