Google is committed to advancing racial equity for Black communities. See how.

DeviceWearableButtonsProvider

class DeviceWearableButtonsProvider : WearableButtonsProvider
kotlin.Any
   ↳ androidx.wear.input.DeviceWearableButtonsProvider

Default implementation of WearableButtonsProvider, that reads the button locations from the platform.

Summary

Public constructors

Default implementation of WearableButtonsProvider, that reads the button locations from the platform.

Public methods
IntArray?

Bundle
getButtonInfo(@NonNull context: Context, keycode: Int)

Public constructors

<init>

DeviceWearableButtonsProvider()

Default implementation of WearableButtonsProvider, that reads the button locations from the platform.

Public methods

getAvailableButtonKeyCodes

@Nullable fun getAvailableButtonKeyCodes(@NonNull context: Context): IntArray?

getButtonInfo

@NonNull fun getButtonInfo(
    @NonNull context: Context,
    keycode: Int
): Bundle