Android 12 Developer Preview is here! Try it out, and give us your feedback!

UserStyleListener

interface UserStyleListener
androidx.wear.watchface.style.UserStyleRepository.UserStyleListener

A listener for observing UserStyle changes.

Summary

Public methods
abstract Unit

Called whenever the UserStyle changes.

Public methods

onUserStyleChanged

@UiThread abstract fun onUserStyleChanged(userStyle: UserStyle): Unit

Called whenever the UserStyle changes.