ComplicationPersistencePolicies


public static class ComplicationPersistencePolicies


The policies that control complication persistence.

Summary

Constants

static final int

The default policy is that persistence/caching is allowed.

static final int

Instructs the system to not persist the complication past a reboot.

Constants

CACHING_ALLOWED

Added in 1.2.0
public static final int CACHING_ALLOWED = 0

The default policy is that persistence/caching is allowed.

DO_NOT_PERSIST

Added in 1.2.0
public static final int DO_NOT_PERSIST = 1

Instructs the system to not persist the complication past a reboot. This is useful when freshness is important.

Public fields

INSTANCE

Added in 1.2.0
public static @NonNull ComplicationPersistencePolicies INSTANCE