Added in API level 36

WatchFaceSlot

public final class WatchFaceSlot
extends Object

java.lang.Object
   ↳ com.google.wear.services.watchfaces.watchfacepush.WatchFaceSlot


A watch face slot represents a "place" in the Watch Face Push API where a client app can install a watch face. It is created when the client invokes the WatchFacePushManager.addWatchFace method, and destroyed when the client invokes the WatchFacePushManager.removeWatchFace method. Using the slot ID, the client can then update the watch face that was placed in that slot. The number of slots for a given client app is limited by the platform. The number of slots that are still available for a client app can be retrieved via the ListWatchFaceSlotsResponse.getAvailableSlotCount() field.

Summary

Public methods

boolean equals(Object o)

List<String> getMetaDataValues(String key)

Returns all meta-data values of the watch face associated with this slot, by the given key.

String getPackageName()

The package name of watch face that occupies the slot.

String getSlotId()

The Slot ID, used to manage the watch face that is currently installed in the slot.

long getVersionCode()

The version code of the watch face that occupies the slot.

int hashCode()

Inherited methods

Public methods

equals

Added in API level 36
public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getMetaDataValues

Added in API level 36
public List<String> getMetaDataValues (String key)

Returns all meta-data values of the watch face associated with this slot, by the given key.

Parameters
key String

Returns
List<String>

getPackageName

Added in API level 36
public String getPackageName ()

The package name of watch face that occupies the slot.

Returns
String

getSlotId

Added in API level 36
public String getSlotId ()

The Slot ID, used to manage the watch face that is currently installed in the slot.

Returns
String

getVersionCode

Added in API level 36
public long getVersionCode ()

The version code of the watch face that occupies the slot.

Returns
long

hashCode

Added in API level 36
public int hashCode ()

Returns
int