Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import androidx.wear.watchface.complications.datasource.SuspendingComplicationDa
// [START android_wear_complication]
class MyComplicationDataSourceService : SuspendingComplicationDataSourceService() {
override suspend fun onComplicationRequest(request: ComplicationRequest): ComplicationData? {
// Retrieve latest info for inclusion in the data
// Retrieve the latest info for inclusion in the data.
val text = getLatestData()
return shortTextComplicationData(text)
}
Expand All @@ -40,7 +40,7 @@ class MyComplicationDataSourceService : SuspendingComplicationDataSourceService(
text = PlainComplicationText.Builder(text).build(),
contentDescription = PlainComplicationText.Builder(text).build()
)
// Add further optional details here such as icon, tap action, title etc
// Add further optional details here such as icon, tap action, and title.
.build()

// [START_EXCLUDE]
Expand Down