GlanceWearProfiles

object GlanceWearProfiles


Defines profiles for Glance Wear.

Summary

Public functions

Profile

Creates a Profile for Wear Widgets using the host-supported operations from params.

Public properties

Profile

A profile for Wear Widgets, based on the allowed operations for widgets.

Public functions

createWearWidgetsProfile

Added in 1.0.0-alpha23
fun createWearWidgetsProfile(params: WearWidgetParams?): Profile

Creates a Profile for Wear Widgets using the host-supported operations from params.

If params is null, only the safe fallback operations are used, that are guaranteed to be supported by all hosts.

Parameters
params: WearWidgetParams?

the WearWidgetParams for the widget request

Returns
Profile

a Profile configured for the host's supported operations

Public properties

wearWidgets

Added in 1.0.0-alpha23
val wearWidgets: Profile

A profile for Wear Widgets, based on the allowed operations for widgets.